Skip to content

Commit

Permalink
fix: fix the safari and firefox test modes (#69384)
Browse files Browse the repository at this point in the history
Fixes the test suites so they include the missing `NEXT_TEST_MODE` while
running the Safari + Firefox tests.
  • Loading branch information
wyattjoh committed Aug 27, 2024
1 parent 0e0fc71 commit af6ff37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,11 @@ jobs:

uses: ./.github/workflows/build_reusable.yml
with:
afterBuild: pnpm playwright install && BROWSER_NAME=firefox node run-tests.js test/production/pages-dir/production/test/index.test.ts && BROWSER_NAME=safari NEXT_TEST_MODE=start node run-tests.js -c 1 test/production/pages-dir/production/test/index.test.ts test/e2e/basepath.test.ts && BROWSER_NAME=safari DEVICE_NAME='iPhone XR' node run-tests.js -c 1 test/production/prerender-prefetch/index.test.ts
afterBuild: pnpm playwright install &&
NEXT_TEST_MODE=start BROWSER_NAME=firefox node run-tests.js test/production/pages-dir/production/test/index.test.ts &&
NEXT_TEST_MODE=start BROWSER_NAME=safari node run-tests.js -c 1 test/production/pages-dir/production/test/index.test.ts test/e2e/basepath.test.ts &&
NEXT_TEST_MODE=start BROWSER_NAME=safari DEVICE_NAME='iPhone XR' node run-tests.js -c 1 test/production/prerender-prefetch/index.test.ts

stepName: 'test-firefox-safari'
secrets: inherit

Expand Down

0 comments on commit af6ff37

Please sign in to comment.