Skip to content

Commit

Permalink
[WIP][JF] Fixed affected files test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Karishma Punwatkar <[email protected]>

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/affected_files.test.ts
	modified:   cypress/utils/utils.ts
  • Loading branch information
kpunwatk committed Apr 2, 2024
1 parent 49d89d1 commit 4a4a4d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
6 changes: 4 additions & 2 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4a4a4d0

Please sign in to comment.