keep browser reset at end of setup

This commit is contained in:
Ron Rennick 2020-08-05 15:01:43 -03:00
parent 7799c1bcf0
commit 7f04d800e9
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,9 @@
const {
switchUserToAdmin,
visitAdminPage,
switchUserToTest
switchUserToTest,
clearLocalStorage,
setBrowserViewport
} = require( "@wordpress/e2e-test-utils" );
/**
@ -69,4 +71,6 @@ beforeAll( async () => {
await trashExistingPosts();
await trashExistingProducts();
await switchUserToTest();
await clearLocalStorage();
await setBrowserViewport( 'large' );
} );

View File

@ -184,7 +184,6 @@ beforeAll( async () => {
capturePageEventsForTearDown();
enablePageDialogAccept();
observeConsoleLogging();
await setupBrowser();
} );
afterEach( async () => {