rsnext/test/e2e/module-layer
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
..
app Allow server-only in server targets and client-only in client components targets to be available (#55394) 2023-09-18 12:27:45 +00:00
lib/mixed-lib Reland "Middleware to use react-server condition" (#66534) 2024-06-14 17:41:12 +02:00
pages Reland "Middleware to use react-server condition" (#66534) 2024-06-14 17:41:12 +02:00
middleware.js Reland "Middleware to use react-server condition" (#66534) 2024-06-14 17:41:12 +02:00
module-layer.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00