From 4a4a4d037ad040aaae30291081332eb3129fdd29 Mon Sep 17 00:00:00 2001 From: kpunwatk Date: Tue, 2 Apr 2024 14:34:20 +0530 Subject: [PATCH] [WIP][JF] Fixed affected files test cases Signed-off-by: Karishma Punwatkar modified: cypress/e2e/tests/migration/applicationinventory/analysis/affected_files.test.ts modified: cypress/utils/utils.ts --- .../applicationinventory/analysis/affected_files.test.ts | 2 +- cypress/utils/utils.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/tests/migration/applicationinventory/analysis/affected_files.test.ts b/cypress/e2e/tests/migration/applicationinventory/analysis/affected_files.test.ts index 656db471c..ff7d5da96 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/affected_files.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/affected_files.test.ts @@ -67,7 +67,7 @@ describe(["@tier2"], "Bug MTA-2006: Affected files validation", () => { }); afterEach("Reset url", function () { - Application.open(true); + Application.open(); }); it("Bug MTA-2006: Affected files validation with Source + dependencies analysis on daytrader app", function () { diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index 105ea783b..57f4a5fda 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -1392,8 +1392,10 @@ export function goToPage(page: number): void { } export function selectUserPerspective(userType: string): void { - cy.get(commonView.optionMenu).click(); - cy.get(commonView.actionMenuItem).contains(userType).click(); + cy.get(commonView.optionMenu).click({ force: true }); + cy.get(commonView.actionMenuItem, { timeout: 30 * SEC }) + .contains(userType) + .click(); } export function selectWithinModal(selector: string): void {