File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1095,27 +1095,28 @@ function defineTest(f: Fixture) {
10951095 } )
10961096
10971097 // Case 3: server -> lazy server with CSS
1098- // Skipped: behavior is inconsistent across platforms (works on macOS, not on Linux)
1099- test . skip ( 'lazy css server to server @js' , async ( { page } ) => {
1098+ test ( 'lazy css server to server @js' , async ( { page } ) => {
11001099 await page . goto ( f . url ( ) )
11011100 await waitForHydration ( page )
11021101 await expect ( page . locator ( '.test-lazy-css-server-to-server' ) ) . toHaveText (
11031102 'lazy-css-server-to-server' ,
11041103 )
1104+ // CSS is never loaded (not even via JS)
11051105 await expect ( page . locator ( '.test-lazy-css-server-to-server' ) ) . toHaveCSS (
11061106 'color' ,
1107- 'rgb(255, 165 , 0)' ,
1107+ 'rgb(0, 0 , 0)' ,
11081108 )
11091109 } )
11101110
1111- testNoJs . skip ( 'lazy css server to server @nojs' , async ( { page } ) => {
1111+ testNoJs ( 'lazy css server to server @nojs' , async ( { page } ) => {
11121112 await page . goto ( f . url ( ) )
11131113 await expect ( page . locator ( '.test-lazy-css-server-to-server' ) ) . toHaveText (
11141114 'lazy-css-server-to-server' ,
11151115 )
1116+ // CSS is not included in SSR
11161117 await expect ( page . locator ( '.test-lazy-css-server-to-server' ) ) . toHaveCSS (
11171118 'color' ,
1118- 'rgb(255, 165 , 0)' ,
1119+ 'rgb(0, 0 , 0)' ,
11191120 )
11201121 } )
11211122
You can’t perform that action at this time.
0 commit comments