Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kpunwatk committed Nov 21, 2024
1 parent a26c34d commit 10bba3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 10bba3b

Please sign in to comment.