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

Support customizing the template for search results in Instant Results #2959

Merged
merged 11 commits into from
Oct 11, 2022
Prev Previous commit
Correct test intercept.
  • Loading branch information
JakePT committed Oct 4, 2022
commit a07941be4abc1cba0a83f91af7ab2b9e77416d0e
4 changes: 2 additions & 2 deletions tests/cypress/integration/features/instant-results.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ describe('Instant Results Feature', () => {
/**
* Perform a search.
*/
cy.intercept('*api/v1/search*').as('apiRequest');
cy.intercept('*search=blog*').as('apiRequest');
cy.visit('/');
cy.get('.wp-block-search').last().as('searchBlock');
cy.get('@searchBlock').find('input[type="search"]').type('Block');
cy.get('@searchBlock').find('input[type="search"]').type('blog');
cy.get('@searchBlock').find('button').click();
cy.get('.ep-search-modal').as('searchModal').should('be.visible');
cy.wait('@apiRequest');
Expand Down