From 5a52d665b47fc994e030f5df8350776e1c17504a Mon Sep 17 00:00:00 2001 From: Maayan Hadasi Date: Tue, 10 Dec 2024 22:54:15 +0200 Subject: [PATCH] Limit analysis verifyStatus timeout to 10 mins Signed-off-by: Maayan Hadasi --- cypress/e2e/models/migration/applicationinventory/analysis.ts | 3 ++- cypress/e2e/types/constants.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/models/migration/applicationinventory/analysis.ts b/cypress/e2e/models/migration/applicationinventory/analysis.ts index 63c49b8ed..98b6d6378 100644 --- a/cypress/e2e/models/migration/applicationinventory/analysis.ts +++ b/cypress/e2e/models/migration/applicationinventory/analysis.ts @@ -20,6 +20,7 @@ import { button, clearAllFilters, Languages, + MIN, ReportTypeSelectors, RepositoryType, save, @@ -392,7 +393,7 @@ export class Analysis extends Application { public static verifyStatus(element: Cypress.Chainable, status: string) { element - .find("div > div:nth-child(2)", { timeout: 3600000, log: false }) // 1h + .find("div > div:nth-child(2)", { timeout: 10 * MIN, log: false }) .should("not.have.text", AnalysisStatuses.notStarted) .and("not.have.text", AnalysisStatuses.scheduled) .and("not.have.text", AnalysisStatuses.inProgress) diff --git a/cypress/e2e/types/constants.ts b/cypress/e2e/types/constants.ts index 2adcf8324..c1d35ad34 100644 --- a/cypress/e2e/types/constants.ts +++ b/cypress/e2e/types/constants.ts @@ -122,7 +122,8 @@ export const max120CharsMsg = "This field must contain fewer than 120 characters export const max250CharsMsg = "This field must contain fewer than 250 characters."; export const minCharsMsg = "This field must contain at least 3 characters."; -export const SEC = 1000; +export const SEC = 1000; // milliseconds +export const MIN = 60000; // milliseconds export const administration = "Administration"; export const migration = "Migration"; export const general = "General";