From e9b9e8bf7ba7499450528738d1e0883261bf878e Mon Sep 17 00:00:00 2001 From: Maayan Hadasi <60384172+mguetta1@users.noreply.github.com> Date: Fri, 27 Sep 2024 18:31:44 +0300 Subject: [PATCH] Modifying edit and delete functions according the UI change (#1222) Signed-off-by: Maayan Hadasi --- .../e2e/models/migration/controls/stakeholdergroups.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/models/migration/controls/stakeholdergroups.ts b/cypress/e2e/models/migration/controls/stakeholdergroups.ts index 59db5b7a7..4ae11a90b 100644 --- a/cypress/e2e/models/migration/controls/stakeholdergroups.ts +++ b/cypress/e2e/models/migration/controls/stakeholdergroups.ts @@ -19,7 +19,6 @@ import { button, createNewButton, deleteAction, - editAction, migration, SEC, } from "../../../types/constants"; @@ -38,8 +37,9 @@ import { submitForm, cancelForm, selectFormItems, - performRowAction, selectUserPerspective, + performRowActionByIcon, + clickItemInKebabMenu, } from "../../../../utils/utils"; export class Stakeholdergroups { @@ -105,7 +105,7 @@ export class Stakeholdergroups { ): void { Stakeholdergroups.openList(); cy.wait(2000); - performRowAction(this.name, editAction); + performRowActionByIcon(this.name, commonView.pencilIcon); if (cancel) { cancelForm(); } else { @@ -127,7 +127,7 @@ export class Stakeholdergroups { delete(cancel = false): void { Stakeholdergroups.openList(); - performRowAction(this.name, deleteAction); + clickItemInKebabMenu(this.name, deleteAction); if (cancel) { click(commonView.confirmCancelButton); } else {