diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6ed9d78b..b9e7d84af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -318,6 +318,16 @@ jobs: run: npm run test - name: Build frontend run: npm run build + - name: Run end-to-end tests + run: npm run e2e + continue-on-error: true + - name: Upload Playwright HTML report + if: always() + uses: actions/upload-artifact@v4 + with: + name: playwright-report-${{ matrix.node-version }} + path: frontend/playwright-report + retention-days: 30 frontend-checks: needs: [frontend-run-checks] diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index f3bd426c6..d56e24bd8 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -6,6 +6,11 @@ export default defineConfig({ snapshotPathTemplate: "{testDir}/__snapshots__/{testFilePath}/{arg}{ext}", + reporter: [ + ['html', { outputFolder: 'playwright-report' }], + ['list'], + ], + use: { baseURL: 'http://127.0.0.1:5173', headless: true,