Skip to content

Commit

Permalink
Changed resetURL method (#798)
Browse files Browse the repository at this point in the history
Signed-off-by: Shveta Sachdeva <[email protected]>
Co-authored-by: Shveta Sachdeva <[email protected]>
  • Loading branch information
sshveta and Shveta Sachdeva authored Nov 10, 2023
1 parent afcb4d8 commit 2b46a98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export class Application {
}

delete(cancel = false): void {
Application.open();
cy.wait(2000);
clickItemInKebabMenu(this.name, "Delete");
if (cancel) {
Expand Down
7 changes: 2 additions & 5 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import { MigrationWave } from "../e2e/models/migration/migration-waves/migration
import { Jira } from "../e2e/models/administration/jira-connection/jira";
import { JiraCredentials } from "../e2e/models/administration/credentials/JiraCredentials";
import { closeModal } from "../e2e/views/assessment.view";
import { Application } from "../e2e/models/migration/applicationinventory/application";

const { _ } = Cypress;

Expand Down Expand Up @@ -229,11 +230,7 @@ export function logout(userName?: string): void {
}

export function resetURL(): void {
cy.url().then(($url) => {
if ($url.includes("report") || $url.includes("tasks")) {
login();
}
});
Application.open();
}

export function selectItemsPerPage(items: number): void {
Expand Down

0 comments on commit 2b46a98

Please sign in to comment.