File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,8 @@ test.describe('compression', () => {
151151 await page . goto ( '/wp-admin/upload.php' ) ;
152152
153153 await page . getByRole ( 'button' , { name : 'Compress' , exact : true } ) . click ( ) ;
154- await expect ( page . getByText ( '2 sizes compressed' ) ) . toBeVisible ( { timeout : 2000 } ) ;
154+ // check interval is 5s so wait atleast 6s
155+ await expect ( page . getByText ( '2 sizes compressed' ) ) . toBeVisible ( { timeout : 6000 } ) ;
155156 } ) ;
156157
157158 test ( 'compress button in edit screen should compress webp images' , async ( ) => {
@@ -167,7 +168,8 @@ test.describe('compression', () => {
167168 await page . goto ( '/wp-admin/upload.php' ) ;
168169
169170 await page . getByRole ( 'button' , { name : 'Compress' , exact : true } ) . click ( ) ;
170- await expect ( page . getByText ( '3 sizes compressed' ) ) . toBeVisible ( { timeout : 2000 } ) ;
171+ // check interval is 5s so wait atleast 6s
172+ await expect ( page . getByText ( '3 sizes compressed' ) ) . toBeVisible ( { timeout : 6000 } ) ;
171173 } ) ;
172174
173175 test ( 'compress button should compress uncompressed sizes' , async ( ) => {
You can’t perform that action at this time.
0 commit comments