Skip to content

Commit 2e940fb

Browse files
committed
Fix reusable blocks E2E test
1 parent 8ef203d commit 2e940fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/e2e-tests/specs/editor/various/reusable-blocks.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,11 @@ describe( 'Reusable blocks', () => {
339339
expect( reusableBlockWithParagraph ).toBeTruthy();
340340

341341
// Convert back to regular blocks.
342-
await clickBlockToolbarButton( 'Select Reusable block' );
342+
await page.click( '[aria-label="Outline"]' );
343+
const [ parentBlockButton ] = await page.$x(
344+
'//*[@aria-label="Block navigation structure"]//button[text()="Untitled Reusable Block"]'
345+
);
346+
await parentBlockButton.click();
343347
await clickBlockToolbarButton( 'Convert to regular blocks' );
344348
await page.waitForXPath( selector, {
345349
hidden: true,

0 commit comments

Comments
 (0)