From 6ee975dc2c31eeb5cdf8733c85ce4d794798e6fd Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Tue, 1 Oct 2019 17:21:35 +0300 Subject: [PATCH] fixed allowed blocks test --- .../e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js b/packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js index c0a2055ade762..4e9ee6286dd66 100644 --- a/packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js +++ b/packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js @@ -62,6 +62,7 @@ describe( 'Allowed Blocks Setting on InnerBlocks ', () => { const parentBlockSelector = '[data-type="test/allowed-blocks-dynamic"]'; const blockAppender = '.block-list-appender button'; const appenderSelector = `${ parentBlockSelector } ${ blockAppender }`; + const listSelector = `${ parentBlockSelector } ${ '.block-editor-rich-text__editable' }`; await page.waitForSelector( appenderSelector ); await page.click( appenderSelector ); await openAllBlockInserterCategories(); @@ -76,6 +77,7 @@ describe( 'Allowed Blocks Setting on InnerBlocks ', () => { ) )[ 0 ]; await insertButton.click(); await insertBlock( 'Image' ); + await page.click( listSelector ); await page.click( appenderSelector ); await openAllBlockInserterCategories(); expect(