File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
test/e2e/specs/site-editor Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,14 @@ test.describe( 'Styles', () => {
45
45
. getByRole ( 'button' , { name : 'Social Icons block styles' } )
46
46
. click ( ) ;
47
47
48
- // find the second padding control
49
- const paddingControl = page
50
- . locator ( '[aria-label="padding"]' )
51
- . nth ( 1 ) ;
52
-
53
- // Change the padding value
54
- await paddingControl . fill ( '2' ) ;
48
+ // Find the second padding control and change the padding value
49
+ await page
50
+ . getByRole ( 'button' , { name : 'Set custom size' } )
51
+ . nth ( 1 )
52
+ . click ( ) ;
53
+ await page . getByRole ( 'spinbutton' , { name : 'padding' } ) . fill ( '35' ) ;
55
54
56
55
// Check the padding value
57
- await expect ( block ) . toHaveCSS ( 'padding-left' , '35.4644px ' ) ;
56
+ await expect ( block ) . toHaveCSS ( 'padding-left' , '35px ' ) ;
58
57
} ) ;
59
58
} ) ;
You can’t perform that action at this time.
0 commit comments