Skip to content

Commit

Permalink
add after cli command to activate plugin in case there was an issue w…
Browse files Browse the repository at this point in the history
…ith the test

requires plugin cypress config to add a pluginSlug env var.
  • Loading branch information
circlecube committed Feb 5, 2024
1 parent e88fb69 commit 83513f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/cypress/integration/deactivation-survey.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,7 @@ describe( 'Plugin Deactivation Survey', () => {
cy.wait( 500 );
} );
} );

after(()=>{
cy.exec( `npx wp-env run cli wp plugin activate ${ Cypress.env( 'pluginSlug' ) }` );
});

0 comments on commit 83513f2

Please sign in to comment.