File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,13 @@ export const testNoJs = test.extend({
66
77export async function waitForHydration ( page : Page ) {
88 await expect
9- . poll (
10- ( ) =>
11- page
12- . locator ( 'body' )
13- . evaluate (
14- ( el ) =>
15- el &&
16- Object . keys ( el ) . some ( ( key ) => key . startsWith ( '__reactFiber' ) ) ,
17- ) ,
18- { timeout : 10000 } ,
9+ . poll ( ( ) =>
10+ page
11+ . locator ( 'body' )
12+ . evaluate (
13+ ( el ) =>
14+ el && Object . keys ( el ) . some ( ( key ) => key . startsWith ( '__reactFiber' ) ) ,
15+ ) ,
1916 )
2017 . toBeTruthy ( )
2118}
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export default defineConfig({
2626 use : devices [ 'Desktop Safari' ] ,
2727 } ,
2828 ] ,
29- workers : 1 ,
3029 forbidOnly : ! ! process . env . CI ,
3130 retries : process . env . CI ? 2 : 0 ,
3231 reporter : [ 'list' , process . env . CI && 'github' ]
You can’t perform that action at this time.
0 commit comments