fe8d953e2d
...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) |
||
---|---|---|
.. | ||
browsers | ||
next-modes | ||
test-data-service | ||
amp-readme.md | ||
amp-test-utils.js | ||
amp-validator-wasm.js | ||
create-next-install.js | ||
development-sandbox.ts | ||
e2e-utils.ts | ||
next-test-utils.ts | ||
next-webdriver.ts | ||
react-channel-require-hook.js | ||
test-log.ts | ||
turbo.ts | ||
use-temp-dir.ts |