Skip to content

Commit 6d464e4

Browse files
committed
Try waiting for save draft
1 parent 749cd73 commit 6d464e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/e2e-tests/specs/performance/site-editor.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe( 'Site Editor Performance', () => {
5959
);
6060

6161
await createNewPost( { postType: 'page' } );
62-
await page.evaluate( ( _html ) => {
62+
await page.evaluate( async ( _html ) => {
6363
const { parse } = window.wp.blocks;
6464
const { dispatch } = window.wp.data;
6565
const blocks = parse( _html );
@@ -71,8 +71,9 @@ describe( 'Site Editor Performance', () => {
7171
}
7272
} );
7373

74-
dispatch( 'core/block-editor' ).resetBlocks( blocks );
74+
await dispatch( 'core/block-editor' ).resetBlocks( blocks );
7575
}, html );
76+
await page.waitForTimeout( 3000 ); // eslint-disable-line no-restricted-syntax
7677
await saveDraft();
7778

7879
id = await page.evaluate( () =>

0 commit comments

Comments
 (0)