Skip to content

Commit

Permalink
Fix performance tests - avoid dispatching to preferences when it does…
Browse files Browse the repository at this point in the history
… not exist (#39333)
  • Loading branch information
talldan authored Mar 10, 2022
1 parent 53f5080 commit 029849c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/e2e-test-utils/src/site-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export async function disableSiteEditorWelcomeGuide() {
wp.data
.dispatch( 'core/edit-site' )
.toggleFeature( 'welcomeGuide' );
return;
}

wp.data
Expand All @@ -113,6 +114,7 @@ export async function disableSiteEditorWelcomeGuide() {
wp.data
.dispatch( 'core/edit-site' )
.toggleFeature( 'welcomeGuideStyles' );
return;
}
wp.data
.dispatch( 'core/preferences' )
Expand Down

0 comments on commit 029849c

Please sign in to comment.