Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in favor of `assertHasRedbox` and `assertNoRedbox`. hasRedbox() has a hardcoded timeout of 5s that is only used 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)`
- Loading branch information