From 2e940fb8e3307c37ee99544a21998e10bc3ae9c6 Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Mon, 1 Mar 2021 15:40:56 +1100 Subject: [PATCH] Fix reusable blocks E2E test --- .../e2e-tests/specs/editor/various/reusable-blocks.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/e2e-tests/specs/editor/various/reusable-blocks.test.js b/packages/e2e-tests/specs/editor/various/reusable-blocks.test.js index 76e978710f225e..1850c89a0f7850 100644 --- a/packages/e2e-tests/specs/editor/various/reusable-blocks.test.js +++ b/packages/e2e-tests/specs/editor/various/reusable-blocks.test.js @@ -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,