diff --git a/cypress/e2e/models/analysis.ts b/cypress/e2e/models/analysis.ts index 74cc9a4..3f3c063 100644 --- a/cypress/e2e/models/analysis.ts +++ b/cypress/e2e/models/analysis.ts @@ -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}); + + } } diff --git a/cypress/e2e/tests/report.test.ts b/cypress/e2e/tests/report.test.ts index e5c7e5c..4369d15 100644 --- a/cypress/e2e/tests/report.test.ts +++ b/cypress/e2e/tests/report.test.ts @@ -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);