From 76d11b235c934be5c8f038fb14bbe5da0f83b454 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 18 Dec 2024 12:09:47 +0545 Subject: [PATCH] cleanup: remove unnecessary viewFirstDRepVoteEnabledGovernanceAction --- .../lib/pages/governanceActionsPage.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/tests/govtool-frontend/playwright/lib/pages/governanceActionsPage.ts b/tests/govtool-frontend/playwright/lib/pages/governanceActionsPage.ts index b4361f98..6df0d4ef 100644 --- a/tests/govtool-frontend/playwright/lib/pages/governanceActionsPage.ts +++ b/tests/govtool-frontend/playwright/lib/pages/governanceActionsPage.ts @@ -1,9 +1,6 @@ import removeAllSpaces from "@helpers/removeAllSpaces"; import { Locator, Page, expect } from "@playwright/test"; -import { - GovernanceActionType, - IProposal, -} from "@types"; +import { GovernanceActionType, IProposal } from "@types"; import environments from "lib/constants/environments"; import GovernanceActionDetailsPage from "./governanceActionDetailsPage"; import { getEnumKeyByValue } from "@helpers/enum"; @@ -50,20 +47,6 @@ export default class GovernanceActionsPage { return new GovernanceActionDetailsPage(this.page); } - async viewFirstDRepVoteEnabledGovernanceAction(): Promise { - for (const governanceAction of Object.keys( - GovernanceActionType - )) { - const result = await this.viewFirstProposalByGovernanceAction( - governanceAction as GovernanceActionType - ); - if (result) { - return result; - } - } - return null; - } - async viewFirstProposalByGovernanceAction( governanceAction: GovernanceActionType ): Promise {