From 1c6eba738619233e8e9cecf2f54208071fbdd7cf Mon Sep 17 00:00:00 2001 From: Gerardo Date: Wed, 17 May 2023 15:25:53 +0200 Subject: [PATCH] Update iPad test --- ...enberg-editor-horizontal-layouts-@ipad.test.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/__device-tests__/gutenberg-editor-horizontal-layouts-@ipad.test.js b/__device-tests__/gutenberg-editor-horizontal-layouts-@ipad.test.js index cdf6724866..7949ebba1e 100644 --- a/__device-tests__/gutenberg-editor-horizontal-layouts-@ipad.test.js +++ b/__device-tests__/gutenberg-editor-horizontal-layouts-@ipad.test.js @@ -52,24 +52,19 @@ describe( 'Gutenberg Editor iPad Visual test for Horizontal layouts', () => { blockNames.cover ); await coverBlock.click(); + + await editorPage.navigateUp(); + await editorPage.removeBlock(); for ( let i = 3; i > 0; i-- ) { const columnsBlock = await editorPage.getBlockAtPosition( blockNames.columns ); - await columnsBlock.click(); - if ( i === 1 ) { - await editorPage.driver.sleep( 2000 ); - // Navigate upwards in block hierarchy - await editorPage.driver - .elementByAccessibilityId( 'Navigate Up' ) - .click() - .click(); - await editorPage.driver.sleep( 2000 ); - } + await editorPage.navigateUp(); + await editorPage.removeBlock(); } } );