From 10bba3bb8f68a54e341c07bf1f941e37e49ca80d Mon Sep 17 00:00:00 2001 From: kpunwatk Date: Thu, 21 Nov 2024 14:25:28 +0530 Subject: [PATCH] update --- cypress/e2e/models/migration/applicationinventory/analysis.ts | 4 ++-- .../e2e/models/migration/applicationinventory/application.ts | 4 ++-- .../analysis/upload_binary_analysis.test.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/models/migration/applicationinventory/analysis.ts b/cypress/e2e/models/migration/applicationinventory/analysis.ts index 63c49b8ed..9d098ab57 100644 --- a/cypress/e2e/models/migration/applicationinventory/analysis.ts +++ b/cypress/e2e/models/migration/applicationinventory/analysis.ts @@ -375,11 +375,11 @@ export class Analysis extends Application { } public verifyEffort(effort: number) { - cy.get(tdTag) + cy.get(tdTag, { timeout: 30 * SEC }) .contains(this.name) .closest(trTag) .within(() => { - cy.get(effortColumn).should("contain", `${effort}`); + cy.get(effortColumn, { timeout: 30 * SEC }).should("contain", `${effort}`); }); } diff --git a/cypress/e2e/models/migration/applicationinventory/application.ts b/cypress/e2e/models/migration/applicationinventory/application.ts index 723559ac3..32f6a81c7 100644 --- a/cypress/e2e/models/migration/applicationinventory/application.ts +++ b/cypress/e2e/models/migration/applicationinventory/application.ts @@ -155,10 +155,10 @@ export class Application { public static open(forceReload = false): void { const itemsPerPage = 100; if (forceReload) { - cy.visit(Application.fullUrl, { timeout: 35 * SEC }).then((_) => { + cy.visit(Application.fullUrl, { timeout: 65 * SEC }).then((_) => { // Bug MTA-3812 Application Inventory page takes long to load // Timeout time of 100s to be reduced after above bug is fixed - cy.get("h1", { timeout: 100 * SEC }).should("contain", applicationInventory); + cy.get("h1", { timeout: 500 * SEC }).should("contain", applicationInventory); selectItemsPerPage(itemsPerPage); }); return; diff --git a/cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts b/cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts index edfdd882b..930706f5f 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts @@ -69,7 +69,7 @@ describe(["@tier1"], "Upload Binary Analysis", () => { cy.wait("@getApplication"); cy.wait(2000); application.analyze(); - application.verifyAnalysisStatus(AnalysisStatuses.completed); + application.verifyAnalysisStatus("Completed"); application.verifyEffort( this.analysisData["uploadbinary_analysis_with_customrule"]["effort"] );