Skip to content

Commit

Permalink
Modifying edit and delete functions according the UI change (#1222)
Browse files Browse the repository at this point in the history
Signed-off-by: Maayan Hadasi <[email protected]>
  • Loading branch information
mguetta1 authored Sep 27, 2024
1 parent 73482c3 commit e9b9e8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/models/migration/controls/stakeholdergroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
button,
createNewButton,
deleteAction,
editAction,
migration,
SEC,
} from "../../../types/constants";
Expand All @@ -38,8 +37,9 @@ import {
submitForm,
cancelForm,
selectFormItems,
performRowAction,
selectUserPerspective,
performRowActionByIcon,
clickItemInKebabMenu,
} from "../../../../utils/utils";

export class Stakeholdergroups {
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit e9b9e8b

Please sign in to comment.