From 57f7aba0e3966dd7c2536360d671ee5b99aa0403 Mon Sep 17 00:00:00 2001 From: kpunwatk Date: Mon, 18 Nov 2024 15:54:22 +0530 Subject: [PATCH] Signed-off-by: Karishma Punwatkar modified: cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts modified: cypress/utils/utils.ts --- .../controls/stakeholdergroups/pagination.test.ts | 7 +++---- cypress/utils/utils.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts b/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts index 98de3735a..3c86e3991 100644 --- a/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts +++ b/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts @@ -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 () { @@ -62,6 +61,6 @@ describe(["@tier3"], "Stakeholder groups pagination validations", function () { }); after("Perform test data clean up", function () { - deleteByList(stakeholderGroupsList); + deleteAllStakeholderGroups; }); }); diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index d7f35af66..8fe5a3461 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -1292,7 +1292,7 @@ export function deleteAllBusinessServices() { export function deleteAllStakeholderGroups(cancel = false): void { Stakeholdergroups.openList(); - deleteAllItems(); + deleteAllRows(); } export function deleteAllStakeholders(): void {