diff --git a/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts b/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts index 5649bb532..05bff8acb 100644 --- a/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts +++ b/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts @@ -20,17 +20,18 @@ import { selectItemsPerPage, createMultipleStakeholderGroups, validatePagination, - deleteAllStakeholderGroups, itemsPerPageValidation, autoPageChangeValidations, + deleteByList, } from "../../../../../utils/utils"; import { Stakeholdergroups } from "../../../../models/migration/controls/stakeholdergroups"; import { appTable } from "../../../../views/common.view"; +let stakeholderGroupsList: Array = []; describe(["@tier3"], "Stakeholder groups pagination validations", function () { before("Login and Create Test Data", function () { login(); - createMultipleStakeholderGroups(11); + stakeholderGroupsList = createMultipleStakeholderGroups(11); }); beforeEach("Interceptors", function () { @@ -61,6 +62,6 @@ describe(["@tier3"], "Stakeholder groups pagination validations", function () { }); after("Perform test data clean up", function () { - deleteAllStakeholderGroups(); + deleteByList(stakeholderGroupsList); }); });