From e38a6d0209db6bd8e1fc2cc7980a1b6fbe3dcf52 Mon Sep 17 00:00:00 2001 From: Maayan Hadasi Date: Tue, 17 Sep 2024 23:12:01 +0300 Subject: [PATCH] Modifying edit and delete functions according the UI change 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 {