rsnext/test/lib
Hendrik Liebau 71c21dfc9a
Set default playwright timeout to NEXT_E2E_TEST_TIMEOUT (#66258)
This allows us to set breakpoints and debug e2e tests without
encountering a timeout after 60 seconds. For example, using:
    
```
NEXT_E2E_TEST_TIMEOUT=1000000 NODE_OPTIONS=--inspect-brk pnpm test-dev test/e2e/app-dir/metadata/metadata.test.ts
```
    
Notably, this change also affects the turbopack dev tests in the CI,
where `NEXT_E2E_TEST_TIMEOUT` is currently set to 240 seconds. Since the
same env variable is also used for `jest.setTimeout()`, a test timeout
will now most likely occur due to jest timing out, and not a specific
playwright check (i.e. `waitForElementByCss` or `waitForCondition`)
timing out. This sounds acceptable to me.

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2024-05-29 03:21:42 +00:00
..
browsers Set default playwright timeout to NEXT_E2E_TEST_TIMEOUT (#66258) 2024-05-29 03:21:42 +00:00
next-modes [lint] Disable linting using project config for tests (#66145) 2024-05-28 07:53:26 -07:00
test-data-service [PPR Nav] Fix flash of loading state during back/forward (#60578) 2024-01-12 14:18:54 -05:00
amp-readme.md Use local AMP validator to reduce test flakiness (#63838) 2024-03-28 20:25:35 +00:00
amp-test-utils.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
amp-validator-wasm.js Use local AMP validator to reduce test flakiness (#63838) 2024-03-28 20:25:35 +00:00
create-next-install.js Fix swc test path from node_modules (#66047) 2024-05-21 11:01:35 -07:00
development-sandbox.ts fix dev overlay pseudo html collapsing (#62728) 2024-03-01 19:13:57 +01:00
e2e-utils.ts fix isTurbopack check in test cases (#65446) 2024-05-07 17:38:57 +02:00
next-test-utils.ts Add support for IPv6 in tests (#66285) 2024-05-28 13:14:27 -07:00
next-webdriver.ts refactor(tests): make chain more "correct" (#51728) 2024-02-14 20:14:24 +01:00
react-channel-require-hook.js Preload css (#48840) 2023-04-27 12:51:52 +02:00
test-log.ts [PPR Nav] Fix flash of loading state during back/forward (#60578) 2024-01-12 14:18:54 -05:00
turbo.ts remove --turbo, use --experimental-turbo as --turbo (#55063) 2023-09-06 17:46:54 +00:00
use-temp-dir.ts fix(cli): handle Tailwind CSS + src/ correctly (#47238) 2023-03-20 14:21:29 -07:00