fix(cypress) Fix broken searchFilters.js cypress test (#13185)

This commit is contained in:
Chris Collins 2025-04-11 11:06:04 -04:00 committed by GitHub
parent ac9f3ca8ef
commit ed0cfe911f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,9 +44,13 @@ describe("search", () => {
cy.visit("/");
cy.get("input[data-testid=search-input]").type("*{enter}");
// click tag filter dropdown inside of "More Filters"
cy.get("[data-testid=more-filters-dropdown").click({ force: true });
cy.get("[data-testid=more-filter-Tag").click({ force: true });
// open up more filters so we can see all filters at once
cy.get("[data-testid=more-filters-dropdown]").click();
// 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
cy.get("[data-testid=search-bar").eq(1).type("cypress");