Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Limit analysis verifyStatus timeout to 10 mins #1290

Open
wants to merge 1 commit into
base: mta_7.1.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -393,7 +394,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
Loading