Skip to content

Commit

Permalink
clear test data as options rather than transients
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Oct 29, 2024
1 parent 7593681 commit 3aaeb43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cypress/integration/solutions-plugins.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ describe( 'My Plugins and Tools in Plugin App', function () {

after( () => {
cy.exec(
`npx wp-env run cli wp transient delete nfd_site_capabilities`
`npx wp-env run cli wp option delete _transient_nfd_site_capabilities`
);
cy.exec( `npx wp-env run cli wp transient delete newfold_solutions` );
cy.exec( `npx wp-env run cli wp option delete _transient_newfold_solutions` );
cy.exec( `npx wp-env run cli wp option delete nfd_data_token` );
} );

// check that it does not display when capabilities.hasSolution is false
it( 'My Plugins & Tools tab does not display without solution', () => {
cy.exec(
`npx wp-env run cli wp transient delete nfd_site_capabilities`
`npx wp-env run cli wp option delete _transient_nfd_site_capabilities`
);
cy.exec( `npx wp-env run cli wp transient delete newfold_solutions` );
cy.exec( `npx wp-env run cli wp option delete _transient_newfold_solutions` );

// need a cli command to set a capability before a test
cy.visit( '/wp-admin/plugin-install.php' );
Expand Down

0 comments on commit 3aaeb43

Please sign in to comment.