Skip to content

Commit

Permalink
try waiting for the switcher content
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jun 18, 2020
1 parent 01e8664 commit 1cce9b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/e2e-test-utils/src/transform-block-to.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export async function transformBlockTo( name ) {
visible: true,
} );
await switcherToggle.click();
await page.waitForSelector( '.block-editor-block-switcher__container', {
visible: true,
} );

// Find the block button option within the switcher popover.
const xpath = `//*[contains(@class, "block-editor-block-switcher__popover")]//button[.='${ name }']`;
Expand Down

0 comments on commit 1cce9b1

Please sign in to comment.