From 89a2947f5505a89025f2d7b199e2cf4ddbef2ad8 Mon Sep 17 00:00:00 2001 From: Copons Date: Fri, 23 Apr 2021 15:45:44 +0100 Subject: [PATCH] Fix e2e test --- .../specs/editor/various/block-hierarchy-navigation.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/e2e-tests/specs/editor/various/block-hierarchy-navigation.test.js b/packages/e2e-tests/specs/editor/various/block-hierarchy-navigation.test.js index 9c7d80a31cb3c..ca9c2c792249f 100644 --- a/packages/e2e-tests/specs/editor/various/block-hierarchy-navigation.test.js +++ b/packages/e2e-tests/specs/editor/various/block-hierarchy-navigation.test.js @@ -68,6 +68,12 @@ describe( 'Navigating the block hierarchy', () => { await page.keyboard.up( 'Shift' ); await page.keyboard.type( '3' ); + // Wait for the new column block to appear in the list view + // 5 = Columns, Column, Paragraph, Column, *Column* + await page.waitForSelector( + 'tr.block-editor-block-navigation-leaf:nth-of-type(5)' + ); + // Navigate to the last column block. const lastColumnsBlockMenuItem = ( await page.$x(