rsnext/test/integration/custom-routes
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 BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
public Add checking filesystem after each rewrite (#9568) 2019-12-23 16:20:17 -05:00
test Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
next.config.js chore(export)!: remove next export in favor of output: export in next.config.js (#57085) 2023-10-23 18:03:58 +00:00