Skip to content

Commit aaf9772

Browse files
committed
[test] Fix flaky error-recovery test
1 parent dbb19c5 commit aaf9772

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/development/pages-dir/client-navigation/index.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
waitFor,
77
check,
88
retry,
9+
getRedboxTotalErrorCount,
910
} from 'next-test-utils'
1011
import webdriver, { BrowserInterface } from 'next-webdriver'
1112
import path from 'path'
@@ -1395,6 +1396,11 @@ describe('Client Navigation', () => {
13951396
})
13961397
},
13971398
})
1399+
await retry(async () => {
1400+
expect(await getRedboxTotalErrorCount(browser)).toBe(
1401+
isReact18 ? 3 : 1
1402+
)
1403+
})
13981404
await expect(browser).toDisplayRedbox(`
13991405
{
14001406
"count": ${isReact18 ? 3 : 1},

0 commit comments

Comments
 (0)