Skip to content

Commit

Permalink
Signed-off-by: Karishma Punwatkar <[email protected]>
Browse files Browse the repository at this point in the history
	modified:   cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts
	modified:   cypress/utils/utils.ts

	modified:   cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts
  • Loading branch information
kpunwatk committed Nov 18, 2024
1 parent 7629fff commit a699e5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ import {
validatePagination,
itemsPerPageValidation,
autoPageChangeValidations,
deleteByList,
deleteAllStakeholderGroups,
} from "../../../../../utils/utils";
import { Stakeholdergroups } from "../../../../models/migration/controls/stakeholdergroups";
import { appTable } from "../../../../views/common.view";
let stakeholderGroupsList: Stakeholdergroups[] = [];

describe(["@tier3"], "Stakeholder groups pagination validations", function () {
before("Login and Create Test Data", function () {
login();
stakeholderGroupsList = createMultipleStakeholderGroups(11);
createMultipleStakeholderGroups(11);
});

beforeEach("Interceptors", function () {
Expand Down Expand Up @@ -62,6 +61,6 @@ describe(["@tier3"], "Stakeholder groups pagination validations", function () {
});

after("Perform test data clean up", function () {
deleteByList(stakeholderGroupsList);
deleteAllStakeholderGroups();
});
});
2 changes: 1 addition & 1 deletion cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ export function deleteAllBusinessServices() {

export function deleteAllStakeholderGroups(cancel = false): void {
Stakeholdergroups.openList();
deleteAllItems();
deleteAllRows();
}

export function deleteAllStakeholders(): void {
Expand Down

0 comments on commit a699e5c

Please sign in to comment.