Skip to content

Commit

Permalink
Use same waitForSelector() approach that site editor tests use
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Dec 20, 2022
1 parent 6c4a7ab commit f68cce9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/e2e-tests/specs/performance/post-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ describe( 'Post Editor Performance', () => {
let i = 5;
while ( i-- ) {
await page.reload();
await page.waitForSelector( 'iframe[name="editor-canvas"]' );
await canvas().waitForSelector( '.wp-block' );
await page.waitForSelector( '.edit-post-layout', {
timeout: 120000,
} );
await canvas().waitForSelector( '.wp-block', { timeout: 120000 } );
const {
serverResponse,
firstPaint,
Expand Down

1 comment on commit f68cce9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3737400839
📝 Reported issues:

Please sign in to comment.