From a58bce596bfcd422abe262ea23b456467412f999 Mon Sep 17 00:00:00 2001 From: Nandini Chandra Date: Fri, 17 Jan 2025 05:18:23 -0600 Subject: [PATCH] [RFR] Update selectFilter() function (#1307) * Update selectFilter() function Signed-off-by: Nandini Chandra * Update selectFilter() function Signed-off-by: Nandini Chandra --------- Signed-off-by: Nandini Chandra --- cypress/utils/utils.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index 0eecb0ff1..38ca91d43 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -73,7 +73,6 @@ import { expandRow, filterDropDownContainer, filterInput, - filterToggleButton, firstPageButton, itemsPerPageMenuOptions, itemsPerPageToggleButton, @@ -393,13 +392,9 @@ export function notExists(value: string, tableSelector = appTable): void { }); } -export function selectFilter(filterName: string, identifiedRisk?: boolean, value = 0): void { - cy.get(filterToggleButton) - .eq(value) - .within(() => { - click("#filtered-by"); - clickWithinByText('div[class="pf-v5-c-menu__content"]', "button", filterName); - }); +export function selectFilter(filterName: string): void { + cy.get("#filtered-by").click(); + clickWithinByText('div[class="pf-v5-c-menu__content"]', "button", filterName); } export function filterInputText(searchTextValue: string, value: number): void {