Skip to content

Commit

Permalink
Merge pull request #77 from newfold-labs/update/testisolation
Browse files Browse the repository at this point in the history
update Cypress test with testIsolation
  • Loading branch information
circlecube authored Jan 21, 2025
2 parents 25f0b85 + a7eef48 commit 87589df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/cypress/integration/performance.cy.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// <reference types="Cypress" />

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();
} );
Expand Down

0 comments on commit 87589df

Please sign in to comment.