Skip to content

Commit

Permalink
[RFR][JF] Fix upload binary test case
Browse files Browse the repository at this point in the history
Signed-off-by: Karishma Punwatkar <[email protected]>

	modified:   cypress/e2e/models/migration/applicationinventory/analysis.ts

	modified:   cypress/e2e/models/migration/applicationinventory/analysis.ts

	modified:   cypress/e2e/models/migration/applicationinventory/analysis.ts

	modified:   cypress/e2e/models/migration/applicationinventory/analysis.ts

	modified:   cypress/e2e/models/migration/applicationinventory/analysis.ts
	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/binary_analysis.test.ts
  • Loading branch information
kpunwatk committed Nov 29, 2024
1 parent 06b0824 commit bad2c83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export class Analysis extends Application {
.contains(this.name)
.closest(trTag)
.within(() => {
cy.get(effortColumn).should("contain", `${effort}`);
cy.get(effortColumn, { timeout: 50 * SEC }).should("contain", `${effort}`);
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { AnalysisStatuses, CredentialType, UserCredentials } from "../../../../t
import { CredentialsSourceControlUsername } from "../../../../models/administration/credentials/credentialsSourceControlUsername";
import { CredentialsMaven } from "../../../../models/administration/credentials/credentialsMaven";
import { MavenConfiguration } from "../../../../models/administration/repositories/maven";
import { Application } from "../../../../models/migration/applicationinventory/application";
let source_credential: CredentialsSourceControlUsername;
let maven_credential: CredentialsMaven;
const mavenConfiguration = new MavenConfiguration();
Expand Down Expand Up @@ -82,6 +83,7 @@ describe(["@tier1"], "Binary Analysis", () => {
application.manageCredentials(source_credential.name, maven_credential.name);
application.analyze();
application.verifyAnalysisStatus(AnalysisStatuses.completed);
Application.open(true);
application.verifyEffort(this.analysisData["binary_analysis_on_tackletestapp"]["effort"]);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe(["@tier1"], "Upload Binary Analysis", () => {

application.analyze();
application.verifyAnalysisStatus(AnalysisStatuses.completed);
Application.open(true);
application.verifyEffort(this.analysisData["uploadbinary_analysis_on_acmeair"]["effort"]);
});

Expand All @@ -70,6 +71,7 @@ describe(["@tier1"], "Upload Binary Analysis", () => {
cy.wait(2000);
application.analyze();
application.verifyAnalysisStatus(AnalysisStatuses.completed);
Application.open(true);
application.verifyEffort(
this.analysisData["uploadbinary_analysis_with_customrule"]["effort"]
);
Expand All @@ -84,7 +86,6 @@ describe(["@tier1"], "Upload Binary Analysis", () => {
applicationsList.push(application);
cy.wait("@getApplication");
cy.wait(2000);

application.analyze();
application.verifyAnalysisStatus(AnalysisStatuses.completed);
});
Expand All @@ -102,6 +103,7 @@ describe(["@tier1"], "Upload Binary Analysis", () => {
cy.wait(2000);
application.analyze();
application.verifyAnalysisStatus("Completed");
Application.open(true);
application.verifyEffort(
this.analysisData["analysis_and_incident_validation_jeeExample_app"]["effort"]
);
Expand All @@ -118,6 +120,7 @@ describe(["@tier1"], "Upload Binary Analysis", () => {
cy.wait(2000);
application.analyze();
application.verifyAnalysisStatus("Completed");
Application.open(true);
application.verifyEffort(
this.analysisData["analysis_and_incident_validation_camunda_app"]["effort"]
);
Expand All @@ -134,6 +137,7 @@ describe(["@tier1"], "Upload Binary Analysis", () => {
cy.wait(2000);
application.analyze();
application.verifyAnalysisStatus(AnalysisStatuses.completed);
Application.open(true);
application.verifyEffort(
this.analysisData["analysis_and_incident_validation_kafka-app"]["effort"]
);
Expand Down

0 comments on commit bad2c83

Please sign in to comment.