diff --git a/cypress/e2e/tests/migration/controls/businessservices/filter.test.ts b/cypress/e2e/tests/migration/controls/businessservices/filter.test.ts index 83c74120b..e7be61234 100644 --- a/cypress/e2e/tests/migration/controls/businessservices/filter.test.ts +++ b/cypress/e2e/tests/migration/controls/businessservices/filter.test.ts @@ -39,7 +39,7 @@ describe(["@tier2"], "Business services filter validations", function () { businessServicesList = createMultipleBusinessServices(2, stakeholdersList); }); - it("Name filter validations", function () { + it("Bug MTA-1375: Name filter validations", function () { BusinessServices.openList(); // Enter an existing display name substring and assert @@ -68,7 +68,7 @@ describe(["@tier2"], "Business services filter validations", function () { clickByText(button, clearAllFilters); }); - it("Description filter validations", function () { + it("Bug MTA-1375: Description filter validations", function () { BusinessServices.openList(); // Enter an existing description substring and assert @@ -97,7 +97,7 @@ describe(["@tier2"], "Business services filter validations", function () { clickByText(button, clearAllFilters); }); - it("Owner filter validations", function () { + it("Bug MTA-1375: Owner filter validations", function () { BusinessServices.openList(); // Enter an existing owner substring and assert diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index 219b4bbef..26daba61d 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -331,8 +331,8 @@ export function selectFilter(filterName: string, identifiedRisk?: boolean, value .eq(value) .within(() => { cy.get("#filtered-by").click(); - cy.get("div.pf-v5-c-menu__content").within(() => { - clickByText("span", filterName); + cy.get('ul[aria-labelledby="filtered-by"]').within(() => { + clickByText("a", filterName); }); }); }