mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-14 10:26:51 +00:00
fix(cypress) Fix broken searchFilters.js cypress test (#13185)
This commit is contained in:
parent
ac9f3ca8ef
commit
ed0cfe911f
@ -44,9 +44,13 @@ describe("search", () => {
|
|||||||
cy.visit("/");
|
cy.visit("/");
|
||||||
cy.get("input[data-testid=search-input]").type("*{enter}");
|
cy.get("input[data-testid=search-input]").type("*{enter}");
|
||||||
|
|
||||||
// click tag filter dropdown inside of "More Filters"
|
// open up more filters so we can see all filters at once
|
||||||
cy.get("[data-testid=more-filters-dropdown").click({ force: true });
|
cy.get("[data-testid=more-filters-dropdown]").click();
|
||||||
cy.get("[data-testid=more-filter-Tag").click({ force: true });
|
|
||||||
|
// look for the high level tag filter first and select the more filter tag if it doesn't exist
|
||||||
|
cy.get("[data-testid=filter-dropdown-Tag], [data-testid=more-filter-Tag]")
|
||||||
|
.first()
|
||||||
|
.click();
|
||||||
|
|
||||||
// click and search for tag, save that tag
|
// click and search for tag, save that tag
|
||||||
cy.get("[data-testid=search-bar").eq(1).type("cypress");
|
cy.get("[data-testid=search-bar").eq(1).type("cypress");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user