File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
test/e2e/app-dir/metadata-streaming-static-generation Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { nextTestSetup } from 'e2e-utils'
2
+ import { retry } from 'next-test-utils'
2
3
3
4
const isPPREnabled = process . env . __NEXT_EXPERIMENTAL_PPR === 'true'
4
5
@@ -89,9 +90,11 @@ const isPPREnabled = process.env.__NEXT_EXPERIMENTAL_PPR === 'true'
89
90
90
91
// Can still render the suspenseful content with browser
91
92
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
+ } )
95
98
} )
96
99
97
100
it ( 'should contain async generated metadata in head for simple dynamic page' , async ( ) => {
You can’t perform that action at this time.
0 commit comments