File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/e2e-tests/specs/performance Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ( ( ) =>
You can’t perform that action at this time.
0 commit comments