Skip to content

Commit

Permalink
Update iPad test to increate waiting time for layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Sep 6, 2023
1 parent ee70f46 commit 3d87023
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions __device-tests__/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ describe( 'Gutenberg Editor iPad Visual test for Horizontal layouts', () => {
initialData: NESTED_COLUMNS_CASE_1,
} );

// Wait for images to load
await editorPage.driver.sleep( 4000 );
// Wait for images to load and columns
await editorPage.driver.sleep( 8000 );

// Select title to unfocus the block
const titleElement = await editorPage.getTitleElement();
Expand All @@ -30,7 +30,7 @@ describe( 'Gutenberg Editor iPad Visual test for Horizontal layouts', () => {
// Switch to landscape
await toggleOrientation( editorPage.driver );
// Wait for the device to finish rotating
await editorPage.driver.sleep( 3000 );
await editorPage.driver.sleep( 5000 );

await swipeUp( editorPage.driver );
await swipeUp( editorPage.driver );
Expand All @@ -54,8 +54,8 @@ describe( 'Gutenberg Editor iPad Visual test for Horizontal layouts', () => {
initialData: NESTED_COLUMNS_CASE_2,
} );

// Wait for images to load
await editorPage.driver.sleep( 4000 );
// Wait for images to load and columns
await editorPage.driver.sleep( 8000 );

// Select title to unfocus the block
const titleElement = await editorPage.getTitleElement();
Expand All @@ -70,7 +70,7 @@ describe( 'Gutenberg Editor iPad Visual test for Horizontal layouts', () => {
// Switch to landscape
await toggleOrientation( editorPage.driver );
// Wait for the device to finish rotating
await editorPage.driver.sleep( 3000 );
await editorPage.driver.sleep( 5000 );

await swipeUp( editorPage.driver );
await swipeUp( editorPage.driver );
Expand Down

0 comments on commit 3d87023

Please sign in to comment.