Skip to content

Commit

Permalink
Merge pull request #1249 from DvoraShechter1/test-for-#2101
Browse files Browse the repository at this point in the history
[RFR] Test of Add 'ActionsColumn to Job Functions table #2101'
  • Loading branch information
ibragins authored Nov 5, 2024
2 parents 0cb3e27 + 75cb623 commit b4c734e
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 b4c734e

Please sign in to comment.