From d3198a1cfc09ca78003d6507e6355b91cebb7faf Mon Sep 17 00:00:00 2001 From: Ceyhun Ozugur Date: Thu, 3 Jun 2021 15:15:47 +0200 Subject: [PATCH] Fix error in templates.test after React 17 upgrade --- packages/e2e-tests/specs/editor/plugins/templates.test.js | 5 +++++ 1 file changed, 5 insertions(+) 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(); } );