diff --git a/packages/e2e-tests/specs/performance/site-editor.test.js b/packages/e2e-tests/specs/performance/site-editor.test.js index ac7ddbaa35665..64e98d8a7a746 100644 --- a/packages/e2e-tests/specs/performance/site-editor.test.js +++ b/packages/e2e-tests/specs/performance/site-editor.test.js @@ -87,6 +87,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', } ); let i = 3; @@ -120,7 +124,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' );