@@ -22,22 +22,19 @@ test.concurrent.for(variants)('none - %s', async (variant, { page, ...ctx }) =>
2222 await expect ( el ) . toHaveCSS ( 'margin-top' , '4px' ) ;
2323} ) ;
2424
25- test . concurrent . for ( variants ) (
26- 'typography without plugin - %s' ,
27- async ( variant , { page, ...ctx } ) => {
28- const cwd = await ctx . run ( variant , { tailwindcss } ) ;
29-
30- // ...add files
31- addFixture ( cwd , variant ) ;
32-
33- const { close } = await prepareServer ( { cwd, page } ) ;
34- // kill server process when we're done
35- ctx . onTestFinished ( async ( ) => await close ( ) ) ;
36-
37- const el = page . getByTestId ( 'typography' ) ;
38- await expect ( el ) . toHaveCSS ( 'font-size' , '18px' ) ;
39- await expect ( el ) . toHaveCSS ( 'line-height' , '28px' ) ;
40- await expect ( el ) . toHaveCSS ( 'text-align' , 'right' ) ;
41- await expect ( el ) . toHaveCSS ( 'text-decoration-line' , 'line-through' ) ;
42- }
43- ) ;
25+ test . concurrent . for ( variants ) ( 'typography - %s' , async ( variant , { page, ...ctx } ) => {
26+ const cwd = await ctx . run ( variant , { tailwindcss : { plugins : [ 'typography' ] } } ) ;
27+
28+ // ...add files
29+ addFixture ( cwd , variant ) ;
30+
31+ const { close } = await prepareServer ( { cwd, page } ) ;
32+ // kill server process when we're done
33+ ctx . onTestFinished ( async ( ) => await close ( ) ) ;
34+
35+ const el = page . getByTestId ( 'typography' ) ;
36+ await expect ( el ) . toHaveCSS ( 'font-size' , '18px' ) ;
37+ await expect ( el ) . toHaveCSS ( 'line-height' , '28px' ) ;
38+ await expect ( el ) . toHaveCSS ( 'text-align' , 'right' ) ;
39+ await expect ( el ) . toHaveCSS ( 'text-decoration-line' , 'line-through' ) ;
40+ } ) ;
0 commit comments