Skip to content

Commit

Permalink
Adjust saving feature test to handle form submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakePT committed Mar 7, 2022
1 parent c17af26 commit e9320aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/cypress/integration/features/woocommerce.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ describe('WooCommerce Feature', () => {
cy.maybeDisableFeature('woocommerce');

cy.visitAdminPage('admin.php?page=elasticpress');
cy.get('.ep-feature-woocommerce .settings-button').click();
cy.get('.ep-feature-woocommerce [name="settings[active]"][value="1"]').click();
cy.get('.ep-feature-woocommerce .button-primary').click();
cy.get('.ep-feature-woocommerce form').submit();
cy.on('window:confirm', () => {
return true;
});
Expand Down
4 changes: 1 addition & 3 deletions tests/cypress/integration/indexables/user.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ describe('User Indexable', () => {
cy.maybeDisableFeature('users');

cy.visitAdminPage('admin.php?page=elasticpress');
cy.get('.ep-feature-users .settings-button').click();
cy.get('.ep-feature-users [name="settings[active]"][value="1"]').click();
cy.get('.ep-feature-users .button-primary').click();
cy.get('.ep-feature-users form').submit();
cy.on('window:confirm', () => {
return true;
});
Expand Down

0 comments on commit e9320aa

Please sign in to comment.