diff --git a/packages/e2e-tests/specs/editor/plugins/templates.test.js b/packages/e2e-tests/specs/editor/plugins/templates.test.js index 173acdff8c031..b1c2491a301fa 100644 --- a/packages/e2e-tests/specs/editor/plugins/templates.test.js +++ b/packages/e2e-tests/specs/editor/plugins/templates.test.js @@ -107,6 +107,11 @@ describe( 'templates', () => { 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(); } );