Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] update verifyApplicationRisk at reports.ts adapting to upstream #685

Merged
merged 2 commits into from
Aug 23, 2023
Merged
Changes from 1 commit
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
7 changes: 4 additions & 3 deletions cypress/e2e/models/migration/reports/reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ export function expandArticle(name: string): void {

export function verifyApplicationRisk(risktype: string, appName: string): void {
// Verifies particular application's risk type
selectItemsPerPageAdoptionCandidate(100);
selectArticleItemsPerPage(100, adoptionCandidateDistributionTitle);
Neilhamza marked this conversation as resolved.
Show resolved Hide resolved
cy.wait(4000);
cy.get(".pf-c-table > tbody > tr")
.not(".pf-c-table__expandable-row")
cy.get(adoptionCandidateDistributionTitle)
.closest("div.pf-v5-l-stack__item")
Neilhamza marked this conversation as resolved.
Show resolved Hide resolved
.find("tbody > tr")
.each(($ele) => {
if ($ele.find(`td[data-label="${applicationName}"]`).text() == appName) {
expect($ele.find(`td[data-label="${risk}"]`).text().toLowerCase()).to.equal(
Expand Down
Loading