diff --git a/test/development/pages-dir/client-navigation/index.test.ts b/test/development/pages-dir/client-navigation/index.test.ts index b2269d697a6ee..02508fb601f48 100644 --- a/test/development/pages-dir/client-navigation/index.test.ts +++ b/test/development/pages-dir/client-navigation/index.test.ts @@ -6,6 +6,7 @@ import { waitFor, check, retry, + getRedboxTotalErrorCount, } from 'next-test-utils' import webdriver, { BrowserInterface } from 'next-webdriver' import path from 'path' @@ -1395,6 +1396,11 @@ describe('Client Navigation', () => { }) }, }) + await retry(async () => { + expect(await getRedboxTotalErrorCount(browser)).toBe( + isReact18 ? 3 : 1 + ) + }) await expect(browser).toDisplayRedbox(` { "count": ${isReact18 ? 3 : 1},