@@ -2,14 +2,12 @@ import { describe, expect, test, vi } from 'vitest'
22import {
33 browserErrors ,
44 browserLogs ,
5- bundledDevTodo ,
65 editFile ,
76 getColor ,
87 getCssRuleBg ,
98 isBuild ,
109 isBundledDev ,
1110 isServe ,
12- isWindows ,
1311 listAssets ,
1412 page ,
1513 ports ,
@@ -18,20 +16,14 @@ import {
1816 untilBrowserLogAfter ,
1917} from '~utils'
2018
21- const windowsTodo = isWindows
22- ? bundledDevTodo (
23- 'on Windows, a request returns 404 and the page CSS does not load' ,
24- )
25- : { }
26-
27- test ( 'should have no 404s' , windowsTodo , ( ) => {
19+ test ( 'should have no 404s' , ( ) => {
2820 browserLogs . forEach ( ( msg ) => {
2921 expect ( msg ) . not . toMatch ( '404' )
3022 } )
3123} )
3224
3325describe ( 'asset imports from js' , ( ) => {
34- test ( 'file outside root' , windowsTodo , async ( ) => {
26+ test ( 'file outside root' , async ( ) => {
3527 // assert valid image src https://github.com/microsoft/playwright/issues/6046#issuecomment-1799585719
3628 await vi . waitUntil ( ( ) =>
3729 page
@@ -124,7 +116,7 @@ describe.runIf(isServe)('serve', () => {
124116 } )
125117 } )
126118
127- test ( 'preserve the base in CSS HMR' , windowsTodo , async ( ) => {
119+ test ( 'preserve the base in CSS HMR' , async ( ) => {
128120 await expect . poll ( ( ) => getColor ( 'body' ) ) . toBe ( 'black' ) // sanity check
129121 editFile ( 'frontend/entrypoints/global.css' , ( code ) =>
130122 code . replace ( 'black' , 'red' ) ,
@@ -138,29 +130,21 @@ describe.runIf(isServe)('serve', () => {
138130 expect ( await link . getAttribute ( 'href' ) ) . toContain ( '/dev/global.css?t=' )
139131 } )
140132
141- test (
142- 'server.origin is applied to non-public CSS url()' ,
143- windowsTodo ,
144- async ( ) => {
145- const bg = await getCssRuleBg ( '.outside-root--aliased' )
146- expect ( bg ) . toContain (
147- `http://localhost:${ ports [ 'backend-integration' ] } /dev/` ,
148- )
149- } ,
150- )
133+ test ( 'server.origin is applied to non-public CSS url()' , async ( ) => {
134+ const bg = await getCssRuleBg ( '.outside-root--aliased' )
135+ expect ( bg ) . toContain (
136+ `http://localhost:${ ports [ 'backend-integration' ] } /dev/` ,
137+ )
138+ } )
151139
152- test (
153- 'server.origin is applied to public CSS url()' ,
154- windowsTodo ,
155- async ( ) => {
156- const bg = await getCssRuleBg ( '.public-asset' )
157- expect ( bg ) . toContain (
158- `http://localhost:${ ports [ 'backend-integration' ] } /dev/icon.png` ,
159- )
160- } ,
161- )
140+ test ( 'server.origin is applied to public CSS url()' , async ( ) => {
141+ const bg = await getCssRuleBg ( '.public-asset' )
142+ expect ( bg ) . toContain (
143+ `http://localhost:${ ports [ 'backend-integration' ] } /dev/icon.png` ,
144+ )
145+ } )
162146
163- test ( 'CSS dependencies are tracked for HMR' , windowsTodo , async ( ) => {
147+ test ( 'CSS dependencies are tracked for HMR' , async ( ) => {
164148 const el = await page . $ ( 'h1' )
165149 await untilBrowserLogAfter (
166150 ( ) =>
0 commit comments