Skip to content

Commit

Permalink
test: add missing await for hydration test (#74542)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored Jan 6, 2025
1 parent 3b37d6b commit 4c5fa1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/development/acceptance-app/hydration-error.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,9 @@ describe('Error overlay for hydration errors in App router', () => {
const { session, browser } = sandbox
await session.openRedbox()

expect(await getRedboxTotalErrorCount(browser)).toBe(2)
await retry(async () => {
expect(await getRedboxTotalErrorCount(browser)).toBe(2)
})

const description = await session.getRedboxDescription()
expect(description).toContain(
Expand Down Expand Up @@ -786,7 +788,7 @@ describe('Error overlay for hydration errors in App router', () => {
const { session, browser } = sandbox
await session.openRedbox()

retry(async () => {
await retry(async () => {
expect(await getRedboxTotalErrorCount(browser)).toBe(4)
})

Expand Down

0 comments on commit 4c5fa1d

Please sign in to comment.