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

[test] Deflake…

[test] Deflake `test/development/app-dir/hydration-error-count/hydration-error-count.test.ts` (#88749)
parent e1685de2
...@@ -334,7 +334,6 @@ describe('hydration-error-count', () => { ...@@ -334,7 +334,6 @@ describe('hydration-error-count', () => {
it('should display runtime error separately from hydration errors', async () => { it('should display runtime error separately from hydration errors', async () => {
const browser = await next.browser('/hydration-with-runtime-errors') const browser = await next.browser('/hydration-with-runtime-errors')
if (process.env.__NEXT_CACHE_COMPONENTS) {
await expect(browser).toDisplayRedbox(` await expect(browser).toDisplayRedbox(`
[ [
{ {
...@@ -394,10 +393,5 @@ describe('hydration-error-count', () => { ...@@ -394,10 +393,5 @@ describe('hydration-error-count', () => {
}, },
] ]
`) `)
} else {
await expect(browser).toDisplayCollapsedRedbox(
`"Redbox is already open. Use \`toDisplayRedbox\` instead."`
)
}
}) })
}) })
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