Skip to content

Commit ed0cfe9

Browse files
fix(cypress) Fix broken searchFilters.js cypress test (#13185)
1 parent ac9f3ca commit ed0cfe9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: smoke-test/tests/cypress/cypress/e2e/search/searchFilters.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ describe("search", () => {
4444
cy.visit("/");
4545
cy.get("input[data-testid=search-input]").type("*{enter}");
4646

47-
// click tag filter dropdown inside of "More Filters"
48-
cy.get("[data-testid=more-filters-dropdown").click({ force: true });
49-
cy.get("[data-testid=more-filter-Tag").click({ force: true });
47+
// open up more filters so we can see all filters at once
48+
cy.get("[data-testid=more-filters-dropdown]").click();
49+
50+
// look for the high level tag filter first and select the more filter tag if it doesn't exist
51+
cy.get("[data-testid=filter-dropdown-Tag], [data-testid=more-filter-Tag]")
52+
.first()
53+
.click();
5054

5155
// click and search for tag, save that tag
5256
cy.get("[data-testid=search-bar").eq(1).type("cypress");

0 commit comments

Comments
 (0)