From 23027a7243288fe547539ac5d7f35cf86416e1d0 Mon Sep 17 00:00:00 2001 From: iseulde Date: Sat, 7 Apr 2018 09:12:36 +0200 Subject: [PATCH] Adjust e2e, multi selection does not work across nested levels --- .../specs/__snapshots__/adding-blocks.test.js.snap | 12 +++++++----- test/e2e/specs/multi-block-selection.test.js | 6 +++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/test/e2e/specs/__snapshots__/adding-blocks.test.js.snap b/test/e2e/specs/__snapshots__/adding-blocks.test.js.snap index 571013e6decb06..1ac9e168763c67 100644 --- a/test/e2e/specs/__snapshots__/adding-blocks.test.js.snap +++ b/test/e2e/specs/__snapshots__/adding-blocks.test.js.snap @@ -11,11 +11,13 @@ exports[`adding blocks Should insert content using the placeholder and the regul
+

Quote block

-
- + - -
Code block
-" + +
Code block
+ + +" `; diff --git a/test/e2e/specs/multi-block-selection.test.js b/test/e2e/specs/multi-block-selection.test.js index 09142e94846b08..85eba730bed696 100644 --- a/test/e2e/specs/multi-block-selection.test.js +++ b/test/e2e/specs/multi-block-selection.test.js @@ -13,7 +13,7 @@ describe( 'Multi-block selection', () => { it( 'Should select/unselect multiple blocks', async () => { const firstBlockSelector = '[data-type="core/paragraph"]'; const secondBlockSelector = '[data-type="core/image"]'; - const thirdBlockSelector = '[data-type="core/quote"]'; + const thirdBlockSelector = '[data-type="core/list"]'; const multiSelectedCssClass = 'is-multi-selected'; // Creating test blocks @@ -24,10 +24,10 @@ describe( 'Multi-block selection', () => { await page.keyboard.press( 'Tab' ); await page.keyboard.press( 'Enter' ); await page.click( '.edit-post-header [aria-label="Add block"]' ); - await page.keyboard.type( 'Quote' ); + await page.keyboard.type( 'List' ); await page.keyboard.press( 'Tab' ); await page.keyboard.press( 'Enter' ); - await page.keyboard.type( 'Quote Block' ); + await page.keyboard.type( 'List Block' ); const blocks = [ firstBlockSelector, secondBlockSelector, thirdBlockSelector ]; const expectMultiSelected = ( selectors, areMultiSelected ) => {