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

Save a draft version of feature settings #3720

Merged
merged 12 commits into from
Oct 24, 2023
Prev Previous commit
Next Next commit
Set test back to original
  • Loading branch information
felipeelia committed Oct 24, 2023
commit d0e40bd97ca9d111a123d5bf9ee2c9e85d69f5ea
11 changes: 1 addition & 10 deletions tests/cypress/integration/features/instant-results.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,6 @@ describe('Instant Results Feature', { tags: '@slow' }, () => {
cy.get('.components-form-token-field__input').type(
'{backspace}{backspace}{backspace}price{downArrow}{enter}{esc}',
);

cy.screenshot('instant-results-facets');

cy.contains('button', 'Save changes').click();

cy.wait('@apiRequest');
Expand All @@ -243,14 +240,8 @@ describe('Instant Results Feature', { tags: '@slow' }, () => {
* Perform a search.
*/
cy.visit('/');

cy.get('.wp-block-search').last().as('searchBlock');
cy.get('@searchBlock').find('button').click();
cy.get('.ep-search-modal').should('be.visible');
cy.screenshot('instant-results-modal');
cy.get('body').type('{esc}');

cy.intercept('*search=ergonomic*').as('apiRequest');
cy.get('.wp-block-search').last().as('searchBlock');
cy.get('@searchBlock').find('input[type="search"]').type('ergonomic');
cy.get('@searchBlock').find('button').click();
cy.get('.ep-search-modal').should('be.visible');
Expand Down