Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion cypress/e2e/models/pf4Reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import {
clickByText,
clickPf4ReportTab,
clickReportTab,
inputText,
navigateTo,
} from "../../utils/utils";
import { SEC, allApps, technologies } from "../types/constants";
import { SEC, allApps, dependencies, technologies } from "../types/constants";
import { allIncidentsTables, fileName, reportStoryPoints } from "../views/analysis.view";
import {
applications,
dependencySearchInput,
incidentCounts,
incidentLabels,
incidentsLink,
Expand Down Expand Up @@ -98,4 +100,15 @@ export class PF4Reports {
.click();
}
}

validateDependency(appName: string, dependencyFile: string) : void {
clickByText(applications + " > a", appName);
clickPf4ReportTab(dependencies);
cy.wait(10*SEC);
inputText(dependencySearchInput, dependencyFile);
click("tr > td > button");
cy.get("div.pf-c-description-list__text > a").then(($maven) => {
$maven.attr("target", "_self");
}).click({force:true});
}
}
14 changes: 14 additions & 0 deletions cypress/e2e/tests/report.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { getRandomApplicationData, login, trimAppNames } from "../../utils/utils";
import { Analysis } from "../models/analysis";
import { LegacyReport } from "../models/legacyReports";
import { PF4Reports } from "../models/pf4Reports";
import { Projects } from "../models/projects";
import { completed } from "../types/constants";

Expand All @@ -13,6 +14,19 @@ 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("Jakarta_nihil68");
analysis.runAnalysis();
analysis.verifyLatestAnalysisStatus(completed);
analysis.openReport();
const pf4Report = new PF4Reports();
pf4Report.validateDependency("customers-tomcat-0.0.1-SNAPSHOT.war", "antlr-2.7.7.jar");
//pf4Report.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
1 change: 1 addition & 0 deletions cypress/e2e/types/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ export const systemLabels = "System labels";
//Report constants
export const allApps = "All Applications";
export const technologies = "Technologies";
export const dependencies = "Dependencies";
1 change: 1 addition & 0 deletions cypress/e2e/views/pf4reports.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export const applications = "td[data-label='Name']";
export const reportTableFilterButtons = "button.pf-c-table__button > div > span";
export const incidentLabels = "span.pf-c-description-list__text";
export const incidentCounts = "div.pf-c-description-list__text";
export const dependencySearchInput = "input[aria-label='Search input']";