Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion frontend/integration-tests/test-playwright-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ if [ "$RUN_CREATE_USER" = true ]; then
export BRIDGE_HTPASSWD_PASSWORD="${BRIDGE_HTPASSWD_PASSWORD:-test}"
fi

function copyArtifacts {
local exit_code=$?
if [ -d "$ARTIFACT_DIR" ] && [ -d "test-results" ]; then
echo "Copying Playwright artifacts from $(pwd)/test-results..."
cp -r test-results "${ARTIFACT_DIR}/playwright-test-results" 2>/dev/null || echo "Warning: failed to copy Playwright artifacts" >&2
fi
exit "$exit_code"
}
trap copyArtifacts EXIT

Comment thread
stefanonardo marked this conversation as resolved.
FRONTEND_ABS="$(pwd)"
playwright_bin="${FRONTEND_ABS}/node_modules/.bin/playwright"
if [ ! -f "$playwright_bin" ]; then
Expand All @@ -90,4 +100,4 @@ fi

export CI=true

exec "$playwright_bin" test "$@"
"$playwright_bin" test "$@"
2 changes: 1 addition & 1 deletion frontend/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from 'path';
import * as dotenv from 'dotenv';

dotenv.config({ path: path.resolve(__dirname, 'e2e', '.env') });
dotenv.config({ path: path.resolve(__dirname, 'e2e', '.env'), quiet: true });

import { defineConfig, devices } from '@playwright/test';

Expand Down