diff --git a/packages/e2e-tests/specs/performance/site-editor.test.js b/packages/e2e-tests/specs/performance/site-editor.test.js index a14b40d72b01b..e67aad6d0ff6c 100644 --- a/packages/e2e-tests/specs/performance/site-editor.test.js +++ b/packages/e2e-tests/specs/performance/site-editor.test.js @@ -90,6 +90,10 @@ describe( 'Site Editor Performance', () => { await visitSiteEditor( { postId: id, postType: 'page', + // This shouldn't be necessary, but without it the tests fail. + // Could be related to having the necessary cookies in the browser. + // See https://github.com/WordPress/gutenberg/pull/48240/files#r1111760556 + path: '/navigation/single', } ); } ); @@ -147,7 +151,7 @@ describe( 'Site Editor Performance', () => { '[data-type="core/post-content"] [data-type="core/paragraph"]' ); await enterEditMode(); - await canvas().click( + await canvas().focus( '[data-type="core/post-content"] [data-type="core/paragraph"]' ); await insertBlock( 'Paragraph' );