Skip to content

Commit

Permalink
Update iPad test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed May 17, 2023
1 parent c0becaf commit 1c6eba7
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions __device-tests__/gutenberg-editor-horizontal-layouts-@ipad.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
} );
Expand Down

0 comments on commit 1c6eba7

Please sign in to comment.