Skip to content

Commit

Permalink
Test that preferences are not persisted in tests due to reload
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Apr 1, 2022
1 parent aa1a2bf commit 6424138
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/e2e-test-utils/src/create-new-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export async function createNewPost( {
wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'welcomeGuide' )
);

await page.reload();
await page.waitForSelector( '.edit-post-layout' );
await page.waitForSelector( '.components-guide', { hidden: true } );
}

if ( isFullscreenMode ) {
Expand Down

0 comments on commit 6424138

Please sign in to comment.