Skip to content

Commit

Permalink
Updating tests to align with ControlTableActionButtons changes from P…
Browse files Browse the repository at this point in the history
…R #2101, including permissions, tooltips, and button structure adjustments.

Signed-off-by: DvoraShechter1 <[email protected]>
  • Loading branch information
DvoraShechter1 committed Nov 3, 2024
1 parent 6e4e92a commit 75cb623
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/e2e/models/migration/controls/jobfunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ import {
cancelForm,
performRowAction,
selectUserPerspective,
performRowActionByIcon,
clickItemInKebabMenu,
} from "../../../../utils/utils";
import * as commonView from "../../../views/common.view";

Expand Down Expand Up @@ -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();
Expand All @@ -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 {
Expand Down

0 comments on commit 75cb623

Please sign in to comment.