Skip to content

Commit

Permalink
Fix remaining e2e test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jun 10, 2021
1 parent d3198a1 commit a865b92
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/e2e-tests/specs/editor/plugins/templates.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,15 @@ describe( 'templates', () => {
await page.type( '.editor-post-title__input', 'My Image Format' );
await clickBlockAppender();
await page.keyboard.press( 'Backspace' );
// Wait for the selection to update.
await page.evaluate(
() => new Promise( window.requestAnimationFrame )
);
await page.keyboard.press( 'Backspace' );
await saveDraft();
await page.reload();
await page.waitForSelector( '.edit-post-layout' );

// Wait a bit more for getEditedPostContent to be correct
await page.waitForSelector(
'.block-editor-default-block-appender__content'
);

expect( await getEditedPostContent() ).toMatchSnapshot();
} );

Expand Down

0 comments on commit a865b92

Please sign in to comment.