Try using Esc to clear previous search

This commit is contained in:
mattwr18 2019-12-20 15:39:13 +01:00
parent 61c80e920d
commit 9f8c207b46

View File

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