Skip to content

Commit

Permalink
automate windup 3722
Browse files Browse the repository at this point in the history
  • Loading branch information
stillalearner committed Apr 3, 2023
1 parent 523ec5b commit 1806325
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cypress/e2e/models/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,13 @@ export class Analysis {
});
}
}

validateDependency(appName: string, dependencyFile: string, dependency: string) : void {
clickByText("div[class='fileName'] > a", appName);
clickReportTab("Dependencies");
cy.get("a#"+dependencyFile+"-link").invoke('removeAttr', 'target').click();
cy.wait(10*SEC);
cy.contains(dependency, {timeout: MINUTE});

}
}
11 changes: 11 additions & 0 deletions cypress/e2e/tests/report.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ describe(["tier2"], "Report Cases", function () {
login();
});

it(["bug"], "WINDUP-3722: Links to search.maven.org are broken", function () {
let projectData = getRandomApplicationData(this.projectData["Openjdk17"]);
const project = new Projects(projectData);
project.create();
const analysis = new Analysis(projectData["name"]);
analysis.runAnalysis();
analysis.verifyLatestAnalysisStatus(completed);
analysis.openReport();
analysis.validateDependency("camunda-bpm-spring-boot-starter-example-war-2.0.0.war", "activation-1.1.jar", "activation-1.1");
});

it("Sort Report with Name/Story Points", function () {
let projectData = getRandomApplicationData(this.projectData["JakartaEE9"]);
const project = new Projects(projectData);
Expand Down

0 comments on commit 1806325

Please sign in to comment.