@@ -6,29 +6,28 @@ import { test } from '../../../../utils.js';
6
6
test . describe . configure ( { mode : 'parallel' } ) ;
7
7
8
8
test . describe ( 'CSS' , ( ) => {
9
- test ( 'applies imported styles' , async ( { page, get_computed_style } ) => {
9
+ test ( 'applies styles correctly ' , async ( { page, get_computed_style } ) => {
10
10
await page . goto ( '/css' ) ;
11
11
12
- expect ( await get_computed_style ( '.styled' , 'color' ) ) . toBe ( 'rgb(255, 0, 0)' ) ;
13
- } ) ;
14
-
15
- test ( 'applies layout styles' , async ( { page, get_computed_style } ) => {
16
- await page . goto ( '/css' ) ;
17
-
18
- expect ( await get_computed_style ( 'footer' , 'color' ) ) . toBe ( 'rgb(128, 0, 128)' ) ;
19
- } ) ;
12
+ test . step ( 'applies imported styles' , async ( ) => {
13
+ expect ( await get_computed_style ( '.styled' , 'color' ) ) . toBe ( 'rgb(255, 0, 0)' ) ;
14
+ } ) ;
20
15
21
- test ( 'applies local styles' , async ( { page, get_computed_style } ) => {
22
- await page . goto ( '/css' ) ;
16
+ test . step ( 'applies imported styles in the correct order' , async ( ) => {
17
+ expect ( await get_computed_style ( '.overridden' , 'color' ) ) . toBe ( 'rgb(0, 128, 0)' ) ;
18
+ } ) ;
23
19
24
- expect ( await get_computed_style ( '.also-styled' , 'color' ) ) . toBe ( 'rgb(0, 0, 255)' ) ;
25
- } ) ;
20
+ test . step ( 'applies layout styles' , async ( ) => {
21
+ expect ( await get_computed_style ( 'footer' , 'color' ) ) . toBe ( 'rgb(128, 0, 128)' ) ;
22
+ } ) ;
26
23
27
- test ( 'applies imported styles in the correct order' , async ( { page, get_computed_style } ) => {
28
- await page . goto ( '/css' ) ;
24
+ test . step ( 'applies local styles' , async ( ) => {
25
+ expect ( await get_computed_style ( '.also-styled' , 'color' ) ) . toBe ( 'rgb(0, 0, 255)' ) ;
26
+ } ) ;
29
27
30
- const color = await get_computed_style ( '.overridden' , 'color' ) ;
31
- expect ( color ) . toBe ( 'rgb(0, 128, 0)' ) ;
28
+ test . step ( 'does not apply raw and url' , async ( ) => {
29
+ expect ( await get_computed_style ( '.not' , 'color' ) ) . toBe ( 'rgb(0, 0, 0)' ) ;
30
+ } ) ;
32
31
} ) ;
33
32
} ) ;
34
33
0 commit comments