Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unistall Woo and its exts after running tests #42

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions tests/cypress/integration/coming-soon-woo.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
4 changes: 3 additions & 1 deletion tests/cypress/integration/coming-soon.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
} );
} );

Expand Down
Loading