Unverified Commit d4919b31 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Fix flaky error-recovery test (#76753)

Fixes
https://github.com/vercel/next.js/actions/runs/13628820428/job/38093524162
parent 51e00434
...@@ -6,6 +6,7 @@ import { ...@@ -6,6 +6,7 @@ import {
waitFor, waitFor,
check, check,
retry, retry,
getRedboxTotalErrorCount,
} from 'next-test-utils' } from 'next-test-utils'
import webdriver, { BrowserInterface } from 'next-webdriver' import webdriver, { BrowserInterface } from 'next-webdriver'
import path from 'path' import path from 'path'
...@@ -1395,6 +1396,11 @@ describe('Client Navigation', () => { ...@@ -1395,6 +1396,11 @@ describe('Client Navigation', () => {
}) })
}, },
}) })
await retry(async () => {
expect(await getRedboxTotalErrorCount(browser)).toBe(
isReact18 ? 3 : 1
)
})
await expect(browser).toDisplayRedbox(` await expect(browser).toDisplayRedbox(`
{ {
"count": ${isReact18 ? 3 : 1}, "count": ${isReact18 ? 3 : 1},
......
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