diff --git a/cypress/e2e/models/migration/applicationinventory/assessment.ts b/cypress/e2e/models/migration/applicationinventory/assessment.ts index 1b0c53782..8e0caf2e4 100644 --- a/cypress/e2e/models/migration/applicationinventory/assessment.ts +++ b/cypress/e2e/models/migration/applicationinventory/assessment.ts @@ -392,8 +392,15 @@ export class Assessment extends Application { Assessment.open(); selectItemsPerPage(100); cy.wait(2 * SEC); - performRowActionByIcon(this.name, kebabMenu); - cy.get("ul > li").find(button).should("not.contain", "Copy assessment"); + cy.get(tdTag) + .contains(this.name) + .parent(tdTag) + .parent(trTag) + .within(() => { + click(actionButton); + cy.wait(500); + cy.get("ul > li").find(button).should("not.contain", "Copy assessment"); + }); } copy_assessment(applicationList: Array, cancel = false): void { @@ -465,8 +472,14 @@ export class Assessment extends Application { Assessment.open(); selectItemsPerPage(items); cy.wait(2 * SEC); - performRowActionByIcon(this.name, kebabMenu); - clickByText(button, action); + cy.get(tdTag) + .contains(this.name) + .closest(trTag) + .within(() => { + click(actionButton); + cy.wait(500); + clickByText(button, action); + }); cy.get("div.pf-v5-c-modal-box").within(() => { selectItemsPerPage(items); }); diff --git a/cypress/e2e/tests/migration/applicationinventory/assessment/copy_assessment/copy_assessment.test.ts b/cypress/e2e/tests/migration/applicationinventory/assessment/copy_assessment/copy_assessment.test.ts index 4769d35b5..5ae401811 100644 --- a/cypress/e2e/tests/migration/applicationinventory/assessment/copy_assessment/copy_assessment.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/assessment/copy_assessment/copy_assessment.test.ts @@ -60,7 +60,7 @@ describe(["@tier2"], "Copy assessment and review tests", () => { it("Copy assessment to self", function () { // Copy assessment to self, checkbox should be disabled applicationList[0].openCopyAssessmentModel(); - cy.get("[id^=pf-modal-part-]") + cy.get(".pf-m-compact> tbody > tr > td") .contains(applicationList[0].name) .parent(trTag) .within(() => {