diff --git a/cypress/e2e/models/migration/controls/jobfunctions.ts b/cypress/e2e/models/migration/controls/jobfunctions.ts index 0e2c6b65d..7d78306e4 100644 --- a/cypress/e2e/models/migration/controls/jobfunctions.ts +++ b/cypress/e2e/models/migration/controls/jobfunctions.ts @@ -34,6 +34,8 @@ import { cancelForm, performRowAction, selectUserPerspective, + performRowActionByIcon, + clickItemInKebabMenu, } from "../../../../utils/utils"; import * as commonView from "../../../views/common.view"; @@ -76,7 +78,7 @@ export class Jobfunctions { Jobfunctions.openList(); selectItemsPerPage(100); cy.wait(2000); - performRowAction(this.name, editAction); + performRowActionByIcon(this.name, commonView.pencilIcon); if (cancel) { cancelForm(); @@ -91,7 +93,7 @@ export class Jobfunctions { delete(cancel = false): void { Jobfunctions.openList(); - performRowAction(this.name, deleteAction); + clickItemInKebabMenu(this.name, deleteAction); if (cancel) { click(commonView.confirmCancelButton); } else {