Skip to content

Commit

Permalink
Fix reusable blocks E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Mar 1, 2021
1 parent 8ef203d commit 2e940fb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,11 @@ describe( 'Reusable blocks', () => {
expect( reusableBlockWithParagraph ).toBeTruthy();

// Convert back to regular blocks.
await clickBlockToolbarButton( 'Select Reusable block' );
await page.click( '[aria-label="Outline"]' );
const [ parentBlockButton ] = await page.$x(
'//*[@aria-label="Block navigation structure"]//button[text()="Untitled Reusable Block"]'
);
await parentBlockButton.click();
await clickBlockToolbarButton( 'Convert to regular blocks' );
await page.waitForXPath( selector, {
hidden: true,
Expand Down

0 comments on commit 2e940fb

Please sign in to comment.