Skip to content

Commit

Permalink
Fix test compatibility with WooCommerce 6.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakePT committed Apr 10, 2024
1 parent 2944248 commit 82f40d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cypress/integration/features/instant-results.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ describe('Instant Results Feature', { tags: '@slow' }, () => {

cy.visit('/');
cy.intercept('*search=heavy*').as('apiRequest');
cy.get('.wp-block-search').last().as('productSearchBlock');
cy.get('.wc-block-product-search,.wp-block-search').last().as('productSearchBlock');
cy.get('@productSearchBlock').find('input[type="search"]').type('heavy{enter}');
cy.get('.ep-search-modal').should('be.visible');
cy.wait('@apiRequest');
Expand All @@ -425,7 +425,7 @@ describe('Instant Results Feature', { tags: '@slow' }, () => {

cy.visit('/');
cy.intercept('*search=ergo*').as('apiRequest');
cy.get('.wp-block-search').last().as('productSearchBlock');
cy.get('.wc-block-product-search,.wp-block-search').last().as('productSearchBlock');
cy.get('@productSearchBlock').find('input[type="search"]').type('heavy{enter}');
cy.get('.ep-search-modal').should('be.visible');
cy.wait('@apiRequest');
Expand Down

0 comments on commit 82f40d3

Please sign in to comment.