Skip to content

Commit

Permalink
clear state
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jun 27, 2022
1 parent 2c8fa92 commit 26858be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cypress/integration/general.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ describe('WordPress can perform standard ElasticPress actions', () => {
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.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 26858be

Please sign in to comment.