rsnext/test/development/acceptance
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
..
__snapshots__ style(dev-overlay): refine the error message header styling (#63823) 2024-04-05 23:39:22 +02:00
fixtures Turbopack: Implement Server Actions (#53890) 2023-10-04 23:33:21 +00:00
error-recovery.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
hydration-error.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
ReactRefresh.test.ts refactor tests for readability (#51051) 2023-06-21 19:47:21 +00:00
ReactRefreshLogBox-app-doc.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
ReactRefreshLogBox-builtins.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
ReactRefreshLogBox-scss.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
ReactRefreshLogBox.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
ReactRefreshLogBoxMisc.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
ReactRefreshModule.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
ReactRefreshRegression.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
ReactRefreshRequire.test.ts refactor tests for readability (#51051) 2023-06-21 19:47:21 +00:00
server-component-compiler-errors-in-pages.test.ts Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00