diff --git a/tests/cypress/integration/coming-soon-woo.cy.js b/tests/cypress/integration/coming-soon-woo.cy.js index 84e2e45..2f01664 100644 --- a/tests/cypress/integration/coming-soon-woo.cy.js +++ b/tests/cypress/integration/coming-soon-woo.cy.js @@ -14,10 +14,14 @@ describe( 'Coming Soon with WooCommerce', function () { } ); after( () => { - // Deactivate WooCommerce - cy.exec( `npx wp-env run cli wp plugin deactivate woocommerce`, { - timeout: 40000, - } ); + // Uninstall WooCommerce and extensions + cy.exec( + 'npx wp-env run cli wp plugin uninstall --all --deactivate --exclude=bluehost-wordpress-plugin,wp-plugin-hostgator,wp-plugin-crazy-domains,wp-plugin-web,wp-plugin-mojo', + { + timeout: 60000, + log: true, + } + ); } ); it( 'Replace our admin bar site status badge with WooCommerce\'s when active', () => { diff --git a/tests/cypress/integration/coming-soon.cy.js b/tests/cypress/integration/coming-soon.cy.js index 150127b..84bf3bb 100644 --- a/tests/cypress/integration/coming-soon.cy.js +++ b/tests/cypress/integration/coming-soon.cy.js @@ -8,9 +8,11 @@ describe( 'Coming Soon', function () { cy.exec( `npx wp-env run cli wp option update mm_coming_soon true` ); cy.exec( `npx wp-env run cli wp option update nfd_coming_soon true` ); - // Deactivate WooCommerce + // Deactivate WooCommerce if it's active cy.exec( `npx wp-env run cli wp plugin deactivate woocommerce`, { timeout: 40000, + log: true, + failOnNonZeroExit: false, } ); } );