rsnext/test/lib
Sebastian Silbermann fe8d953e2d
Replace hasRedbox() (#67025)
...with `assertHasRedbox` and `assertNoRedbox`.

`hasRedbox()` has a hardcoded timeout of 5s that is only required for
the negative assertion.
Instead, we now have dedicated assertions for the positive
(`assertHasRedbox`) and negative case (`assertNoRedbox`).
The negative assertion still has the hardcoded timeout.
But the positive assertion just retries until we find the Redbox.

This speeds up tests using the positive assertion.
Removing `hasRedbox` also uncovered some unused expressions e.g. `await
hasRedbox(browser)`.
These expressions probably wanted to use `expect(await
hasRedbox(browser)).toBe(true)
2024-06-20 10:37:32 +02:00
..
browsers Fix internal route redirection with absolute urls outside basePath (#64604) 2024-06-18 06:58:38 -07:00
next-modes fix ppr deploy test (#66809) 2024-06-12 16:35:55 -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 Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
e2e-utils.ts fix isTurbopack check in test cases (#65446) 2024-05-07 17:38:57 +02:00
next-test-utils.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02: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