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][JF] Fix upload binary analysis test cases #1270

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions cypress/e2e/models/migration/applicationinventory/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
);
Expand Down
Loading