Skip to content

Commit

Permalink
Fix multi entity saving flow test
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jan 3, 2022
1 parent 785c1e1 commit 223fe34
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ describe( 'Multi-entity save flow', () => {
'//*[@id="a11y-speak-polite"][contains(text(), "Post published")]'
);

// Unselect the blocks to avoid clicking the block toolbar.
await page.evaluate( () => {
wp.data.dispatch( 'core/block-editor' ).clearSelectedBlock();
} );

// Update the post.
await page.click( '.editor-post-title' );
await page.keyboard.type( '...more title!' );
Expand Down

0 comments on commit 223fe34

Please sign in to comment.