Skip to content

Commit

Permalink
cleanup: remove unnecessary viewFirstDRepVoteEnabledGovernanceAction
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerose committed Dec 23, 2024
1 parent da3bc3b commit 76d11b2
Showing 1 changed file with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -50,20 +47,6 @@ export default class GovernanceActionsPage {
return new GovernanceActionDetailsPage(this.page);
}

async viewFirstDRepVoteEnabledGovernanceAction(): Promise<GovernanceActionDetailsPage> {
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<GovernanceActionDetailsPage> {
Expand Down

0 comments on commit 76d11b2

Please sign in to comment.