From 2dc0f08725248214e192ecd8e643404a25fc96e0 Mon Sep 17 00:00:00 2001 From: yiling Date: Wed, 5 Aug 2026 18:28:46 +0800 Subject: [PATCH] chore(e2e): default to chromium locally, run all browsers on CI --- .github/workflows/ci.yaml | 4 ++-- package.json | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6d7c3067..6cbf0ec6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -89,7 +89,7 @@ jobs: - name: Run video player harness tests env: E2E_SKIP_APP_SERVER: true - run: bun run test:e2e --project=harness-${{ matrix.project }} + run: bunx playwright test --project=harness-${{ matrix.project }} - name: Upload Playwright report if: ${{ !cancelled() }} @@ -134,7 +134,7 @@ jobs: run: bunx playwright install --with-deps ${{ matrix.project }} - name: Run app E2E tests - run: bun run test:e2e --project=app-${{ matrix.project }} --no-deps + run: bunx playwright test --project=app-${{ matrix.project }} --no-deps - name: Upload Playwright report if: ${{ !cancelled() }} diff --git a/package.json b/package.json index d4400691..b2cbcf2d 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,10 @@ "typecheck": "tsc --noEmit", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "test": "bun --bun vitest run", - "test:e2e": "playwright test", + "test:e2e": "playwright test --project=harness-chromium --project=app-chromium", + "test:e2e:all": "playwright test", "test:e2e:workflow": "bun --bun vitest run -c packages/e2e/vitest.config.ts", - "test:e2e:ui": "playwright test --ui", + "test:e2e:ui": "playwright test --ui --project=harness-chromium --project=app-chromium", "test:e2e:report": "playwright show-report", "test:e2e:install": "playwright install --with-deps", "harness:dev": "bun run packages/webui/e2e/harness/serve.ts",