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
This commit is contained in:
mattwr18 2019-12-20 12:40:01 +01:00
parent 3ef04f8391
commit 61c80e920d

View File

@ -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 => {