Skip to content

Commit 58f3bb6

Browse files
lane711claude
andcommitted
fix(ci): add --config flag to playwright commands
npx playwright test without --config scans the whole repo and picks up Vitest unit test files alongside E2E specs. Point to the config explicitly so only tests/e2e/ is included. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e980e5d commit 58f3bb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/pr-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ jobs:
237237
238238
- name: Install Playwright browsers
239239
if: github.actor != 'dependabot[bot]'
240-
run: npx playwright install --with-deps chromium
240+
run: npx playwright install --with-deps chromium --config=tests/playwright.config.ts
241241

242242
- name: Run E2E tests against preview
243243
if: github.actor != 'dependabot[bot]'
244-
run: npx playwright test --grep "${{ steps.test-tags.outputs.grep_pattern }}"
244+
run: npx playwright test --config=tests/playwright.config.ts --grep "${{ steps.test-tags.outputs.grep_pattern }}"
245245
env:
246246
CI: true
247247
BASE_URL: ${{ steps.deploy.outputs.preview_url }}

0 commit comments

Comments
 (0)