From 61c80e920d93da24b23953a35e329dbdb1b8d33a Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Fri, 20 Dec 2019 12:40:01 +0100 Subject: [PATCH] Force click on clear btn - cypress passing locally, but failing the build, the previous search term is not being cleared, which does happen when the clear button is clicked --- cypress/integration/common/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/common/search.js b/cypress/integration/common/search.js index 1cada998f..d6d06a77d 100644 --- a/cypress/integration/common/search.js +++ b/cypress/integration/common/search.js @@ -16,7 +16,7 @@ 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"); + cy.get(".search-clear-btn").trigger("click", { force: true }); }); Then("I should see the following posts in the select dropdown:", table => {