Skip to content

Commit cb3f5bf

Browse files
committed
Throttled reveal adjustments
1 parent 527f51a commit cb3f5bf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/e2e/app-dir/metadata-streaming-static-generation/metadata-streaming-static-generation.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { nextTestSetup } from 'e2e-utils'
2+
import { retry } from 'next-test-utils'
23

34
const isPPREnabled = process.env.__NEXT_EXPERIMENTAL_PPR === 'true'
45

@@ -89,9 +90,11 @@ const isPPREnabled = process.env.__NEXT_EXPERIMENTAL_PPR === 'true'
8990

9091
// Can still render the suspenseful content with browser
9192
const browser = await next.browser('/suspenseful/dynamic')
92-
expect(await browser.elementByCss('.suspenseful-layout').text()).toBe(
93-
'suspenseful - dynamic'
94-
)
93+
await retry(async () => {
94+
expect(await browser.elementByCss('.suspenseful-layout').text()).toBe(
95+
'suspenseful - dynamic'
96+
)
97+
})
9598
})
9699

97100
it('should contain async generated metadata in head for simple dynamic page', async () => {

0 commit comments

Comments
 (0)