From 241470d3b2b910895f3288bf1482244a8dbe82d8 Mon Sep 17 00:00:00 2001 From: kpunwatk Date: Thu, 29 Aug 2024 12:38:51 +0530 Subject: [PATCH] Fix upload binary Signed-off-by: Karishma Punwatkar modified: cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts modified: cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts --- .../analysis/upload_binary_analysis.test.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts b/cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts index 5a124a9a8..93c23fd76 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts @@ -23,7 +23,7 @@ import { } from "../../../../../utils/utils"; import { Analysis } from "../../../../models/migration/applicationinventory/analysis"; import { Application } from "../../../../models/migration/applicationinventory/application"; -import { AnalysisStatuses } from "../../../../types/constants"; +import { AnalysisStatuses, SEC } from "../../../../types/constants"; const applicationsList: Analysis[] = []; describe(["@tier1"], "Upload Binary Analysis", () => { @@ -63,6 +63,8 @@ describe(["@tier1"], "Upload Binary Analysis", () => { getRandomApplicationData("customRule_customTarget"), getRandomAnalysisData(this.analysisData["uploadbinary_analysis_with_customrule"]) ); + cy.wait(2 * SEC); + Application.open(); application.create(); applicationsList.push(application); cy.wait("@getApplication"); @@ -77,6 +79,8 @@ describe(["@tier1"], "Upload Binary Analysis", () => { getRandomApplicationData("spring"), getRandomAnalysisData(this.analysisData["analysis_for_spring_petclinic_app"]) ); + cy.wait(2 * SEC); + Application.open(); application.create(); applicationsList.push(application); cy.wait("@getApplication"); @@ -93,6 +97,8 @@ describe(["@tier1"], "Upload Binary Analysis", () => { this.analysisData["analysis_and_incident_validation_jeeExample_app"] ) ); + cy.wait(2 * SEC); + Application.open(); application.create(); applicationsList.push(application); cy.wait("@getApplication"); @@ -109,6 +115,8 @@ describe(["@tier1"], "Upload Binary Analysis", () => { getRandomApplicationData("uploadBinary"), getRandomAnalysisData(this.analysisData["analysis_and_incident_validation_camunda_app"]) ); + cy.wait(2 * SEC); + Application.open(); application.create(); applicationsList.push(application); cy.wait("@getApplication"); @@ -125,6 +133,8 @@ describe(["@tier1"], "Upload Binary Analysis", () => { getRandomApplicationData("uploadBinary"), getRandomAnalysisData(this.analysisData["analysis_and_incident_validation_kafka-app"]) ); + cy.wait(2 * SEC); + Application.open(); application.create(); applicationsList.push(application); cy.wait("@getApplication"); @@ -141,6 +151,8 @@ describe(["@tier1"], "Upload Binary Analysis", () => { getRandomApplicationData("uploadBinary"), getRandomAnalysisData(this.analysisData["upload_binary_with_exculde_packages"]) ); + cy.wait(2 * SEC); + Application.open(); application.create(); applicationsList.push(application); cy.wait("@getApplication");