diff --git a/cypress/integration/common/search.js b/cypress/integration/common/search.js index d6d06a77d..2b2dbc8b7 100644 --- a/cypress/integration/common/search.js +++ b/cypress/integration/common/search.js @@ -16,7 +16,9 @@ Then("the search has no results", () => { expect($li).to.have.length(1); }); cy.get(".ds-select-dropdown").should("contain", 'Nothing found'); - cy.get(".search-clear-btn").trigger("click", { force: true }); + cy.get("#search-resources") + .focus() + .type("{esc}"); }); Then("I should see the following posts in the select dropdown:", table => {