diff --git a/cypress/e2e/models/migration/reports/reports.ts b/cypress/e2e/models/migration/reports/reports.ts index 3e1eb1bae..9d244bea6 100644 --- a/cypress/e2e/models/migration/reports/reports.ts +++ b/cypress/e2e/models/migration/reports/reports.ts @@ -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); + selectItemsPerPageinReports(100, adoptionCandidateDistributionTitle); cy.wait(4000); - cy.get(".pf-c-table > tbody > tr") - .not(".pf-c-table__expandable-row") + cy.get(adoptionCandidateDistributionTitle) + .closest(articleItem) + .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(