rsnext/test/integration/next-image-legacy
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
..
asset-prefix Skip test/integration development tests during Turbopack build test run (#63671) 2024-03-25 18:37:34 +01:00
base-path Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
basic Rename process.env.TURBOPACK -> process.env.TURBOPACK_DEV in test skips (#63665) 2024-03-25 14:17:56 +01:00
custom-resolver de-flake next-image test (#66882) 2024-06-14 13:26:30 -07:00
default Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
image-from-node-modules Rename process.env.TURBOPACK -> process.env.TURBOPACK_DEV in test skips (#63665) 2024-03-25 14:17:56 +01:00
no-intersection-observer-fallback Rename process.env.TURBOPACK -> process.env.TURBOPACK_DEV in test skips (#63665) 2024-03-25 14:17:56 +01:00
noscript Rename process.env.TURBOPACK -> process.env.TURBOPACK_DEV in test skips (#63665) 2024-03-25 14:17:56 +01:00
react-virtualized Rename process.env.TURBOPACK -> process.env.TURBOPACK_DEV in test skips (#63665) 2024-03-25 14:17:56 +01:00
svgo-webpack Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
trailing-slash Skip test/integration development tests during Turbopack build test run (#63671) 2024-03-25 18:37:34 +01:00
typescript Skip test/integration development tests during Turbopack build test run (#63671) 2024-03-25 18:37:34 +01:00
unicode Skip test/integration development tests during Turbopack build test run (#63671) 2024-03-25 18:37:34 +01:00
unoptimized Skip test/integration development tests during Turbopack build test run (#63671) 2024-03-25 18:37:34 +01:00