Unverified Commit bda5c86d authored by Wyatt Johnson's avatar Wyatt Johnson Committed by GitHub

Fix test mode detection (#69416)

This fixes a regression introduced when the e2e utils were moved up a
folder and broke test mode detection
parent 81e136d0
...@@ -414,9 +414,9 @@ jobs: ...@@ -414,9 +414,9 @@ jobs:
uses: ./.github/workflows/build_reusable.yml uses: ./.github/workflows/build_reusable.yml
with: with:
afterBuild: pnpm playwright install && afterBuild: pnpm playwright install &&
NEXT_TEST_MODE=start BROWSER_NAME=firefox node run-tests.js test/production/pages-dir/production/test/index.test.ts && 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 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 BROWSER_NAME=safari DEVICE_NAME='iPhone XR' node run-tests.js -c 1 test/production/prerender-prefetch/index.test.ts
stepName: 'test-firefox-safari' stepName: 'test-firefox-safari'
secrets: inherit secrets: inherit
......
...@@ -28,7 +28,7 @@ if (process.env.NEXT_E2E_TEST_TIMEOUT) { ...@@ -28,7 +28,7 @@ if (process.env.NEXT_E2E_TEST_TIMEOUT) {
jest.setTimeout(testTimeout) jest.setTimeout(testTimeout)
const testsFolder = path.join(__dirname, '..') const testsFolder = path.join(__dirname, '..', '..')
let testFile let testFile
const testFileRegex = /\.test\.(js|tsx?)/ const testFileRegex = /\.test\.(js|tsx?)/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment