Skip to content

Commit

Permalink
fixed allowed blocks test
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Oct 1, 2019
1 parent 0c8c351 commit 6ee975d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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(
Expand Down

0 comments on commit 6ee975d

Please sign in to comment.