Skip to content

Commit

Permalink
Limit analysis verifyStatus timeout to 10 mins
Browse files Browse the repository at this point in the history
Signed-off-by: Maayan Hadasi <[email protected]>
  • Loading branch information
mguetta1 committed Dec 11, 2024
1 parent cb33ff7 commit 5a52d66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
button,
clearAllFilters,
Languages,
MIN,
ReportTypeSelectors,
RepositoryType,
save,
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/types/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 5a52d66

Please sign in to comment.