From 3747aba2a5d8952bc7627034520aee63e19d753e Mon Sep 17 00:00:00 2001 From: kpunwatk Date: Tue, 12 Nov 2024 10:55:54 +0530 Subject: [PATCH] [RFR][JF] Fix after hook for stakeholder group test Signed-off-by: Karishma Punwatkar modified: cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts --- .../controls/stakeholdergroups/pagination.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); }); });