Skip to content

Commit

Permalink
Merge pull request #2863 from 10up/burhan/add-e2e-for-#2823
Browse files Browse the repository at this point in the history
Add E2E for Prevent saving feature settings during a sync #2823
  • Loading branch information
felipeelia authored Jul 1, 2022
2 parents ad3a7a2 + 2085cd5 commit 306f836
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/cypress/integration/general.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,15 @@ describe('WordPress can perform standard ElasticPress actions', () => {
cy.get('.dashicons.start-sync').should('have.attr', 'title', 'Sync Page');
cy.get('.dashicons.dashicons-admin-generic').should('have.attr', 'title', 'Settings Page');
});

it('Cannot save settings while a sync is in progress', () => {
cy.login();
cy.visitAdminPage('admin.php?page=elasticpress');
cy.wpCliEval(`update_option( 'ep_index_meta', true );`).then(() => {
cy.get('.ep-feature-search .settings-button').click();
cy.get('.ep-feature-search .button-primary').click();
cy.get('.ep-feature-search .requirements-status-notice--syncing').should('be.visible');
cy.wpCliEval(`delete_option( 'ep_index_meta' );`);
});
});
});

0 comments on commit 306f836

Please sign in to comment.