From 5b11a083c39845ab142cc1d10dee07ecd3f3d5ce 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 modified: cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts modified: cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts --- .../applicationinventory/analysis/source_analysis.test.ts | 2 +- .../controls/stakeholdergroups/pagination.test.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts index dc6a54f94..6c489f28f 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts @@ -248,7 +248,7 @@ describe(["@tier1"], "Source Analysis", () => { cy.get("h2", { timeout: 5 * SEC }).should("contain", "No tags available"); }); - it("Bug MTA-4135: Analysis for Konveyor example1 application", function () { + it(" Analysis for Konveyor example1 application", function () { // Automates https://github.com/konveyor/example-applications/tree/main/example-1 const application = new Analysis( getRandomApplicationData("Example 1", { 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); }); });