Unverified Commit b7a7752f authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

de-flake ReactRefreshLogBox (app) (#79573)

This test is failing fairly consistently in CI. I suspect it's a timing
issue for when the error is thrown and when the redbox gets triggered.
parent 0adbbd2e
...@@ -1460,11 +1460,14 @@ describe('ReactRefreshLogBox app', () => { ...@@ -1460,11 +1460,14 @@ describe('ReactRefreshLogBox app', () => {
await next.patchFile('index.js', "throw new Error('module error')") await next.patchFile('index.js', "throw new Error('module error')")
if (isTurbopack) { await retry(async () => {
// TODO(veil): Turbopack is flaky. Possibly related to https://linear.app/vercel/issue/NDX-920/turbopack-errors-after-hmr-have-no-stacktraces-in-affected-chunks
// Should use `await expect(browser).toDisplayRedbox()` // Should use `await expect(browser).toDisplayRedbox()`
await session.assertHasRedbox() await session.assertHasRedbox()
} else { })
// TODO(veil): Turbopack is flaky. Possibly related to https://linear.app/vercel/issue/NDX-920/turbopack-errors-after-hmr-have-no-stacktraces-in-affected-chunks
if (!isTurbopack) {
await expect({ browser, next }).toDisplayRedbox(` await expect({ browser, next }).toDisplayRedbox(`
{ {
"description": "module error", "description": "module error",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment