From 75cb62310f40c4b474671a48b0626d7497292b36 Mon Sep 17 00:00:00 2001 From: DvoraShechter1 Date: Sun, 3 Nov 2024 14:43:19 +0200 Subject: [PATCH] Updating tests to align with ControlTableActionButtons changes from PR #2101, including permissions, tooltips, and button structure adjustments. Signed-off-by: DvoraShechter1 --- cypress/e2e/models/migration/controls/jobfunctions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {