Unverified Commit 4c5fa1dc authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

test: add missing await for hydration test (#74542)

parent 3b37d6bf
...@@ -624,7 +624,9 @@ describe('Error overlay for hydration errors in App router', () => { ...@@ -624,7 +624,9 @@ describe('Error overlay for hydration errors in App router', () => {
const { session, browser } = sandbox const { session, browser } = sandbox
await session.openRedbox() await session.openRedbox()
await retry(async () => {
expect(await getRedboxTotalErrorCount(browser)).toBe(2) expect(await getRedboxTotalErrorCount(browser)).toBe(2)
})
const description = await session.getRedboxDescription() const description = await session.getRedboxDescription()
expect(description).toContain( expect(description).toContain(
...@@ -786,7 +788,7 @@ describe('Error overlay for hydration errors in App router', () => { ...@@ -786,7 +788,7 @@ describe('Error overlay for hydration errors in App router', () => {
const { session, browser } = sandbox const { session, browser } = sandbox
await session.openRedbox() await session.openRedbox()
retry(async () => { await retry(async () => {
expect(await getRedboxTotalErrorCount(browser)).toBe(4) expect(await getRedboxTotalErrorCount(browser)).toBe(4)
}) })
......
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