diff --git a/tests/cypress/integration/performance.cy.js b/tests/cypress/integration/performance.cy.js index 111f9f2..109a141 100644 --- a/tests/cypress/integration/performance.cy.js +++ b/tests/cypress/integration/performance.cy.js @@ -1,13 +1,14 @@ // -describe( 'Performance Page', function () { +describe( 'Performance Page', { testIsolation: true }, () => { const appClass = '.' + Cypress.env( 'appId' ); - before( () => { + beforeEach( () => { + cy.login( Cypress.env( "wpUsername" ), Cypress.env( "wpPassword" ) ); cy.visit( '/wp-admin/admin.php?page=' + - Cypress.env( 'pluginId' ) + - '#/performance' + Cypress.env( 'pluginId' ) + + '#/performance' ); cy.injectAxe(); } );