Skip to content

Commit

Permalink
Merge branch 'fix/3604' of github.com:10up/ElasticPress into fix/3604
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jan 28, 2025
2 parents 682e853 + d87eb68 commit 7412d80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/cypress/integration/features/woocommerce.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,17 @@ describe('WooCommerce Feature', { tags: '@slow' }, () => {

// enable payment gateway.
cy.visitAdminPage('admin.php?page=wc-settings&tab=checkout&section=cod');
// if the checkbox is already checked, uncheck it first to enable the save button.
cy.get('#woocommerce_cod_enabled').uncheck();
cy.get('#woocommerce_cod_enabled').check();
cy.get(
`.button-primary.woocommerce-save-button,
.components-button.is-primary.woocommerce-save-button`,
).click();

// disable coming soon option.
cy.wpCli('option update woocommerce_coming_soon off');

cy.logout();

// create new user.
Expand Down

0 comments on commit 7412d80

Please sign in to comment.