rsnext/test/integration/dynamic-routing
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
..
pages Revert "Ensure dynamic routes dont match _next/static unexpectedly" (#62691) 2024-02-29 08:34:11 -08:00
public Fix public/ file name encoding (#10022) 2020-01-09 21:56:05 -05:00
static Fix static/ file name encoding (#11373) 2020-03-26 12:58:15 -04:00
test Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00