Skip to content

Commit 76d11b2

Browse files
committed
cleanup: remove unnecessary viewFirstDRepVoteEnabledGovernanceAction
1 parent da3bc3b commit 76d11b2

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

tests/govtool-frontend/playwright/lib/pages/governanceActionsPage.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import removeAllSpaces from "@helpers/removeAllSpaces";
22
import { Locator, Page, expect } from "@playwright/test";
3-
import {
4-
GovernanceActionType,
5-
IProposal,
6-
} from "@types";
3+
import { GovernanceActionType, IProposal } from "@types";
74
import environments from "lib/constants/environments";
85
import GovernanceActionDetailsPage from "./governanceActionDetailsPage";
96
import { getEnumKeyByValue } from "@helpers/enum";
@@ -50,20 +47,6 @@ export default class GovernanceActionsPage {
5047
return new GovernanceActionDetailsPage(this.page);
5148
}
5249

53-
async viewFirstDRepVoteEnabledGovernanceAction(): Promise<GovernanceActionDetailsPage> {
54-
for (const governanceAction of Object.keys(
55-
GovernanceActionType
56-
)) {
57-
const result = await this.viewFirstProposalByGovernanceAction(
58-
governanceAction as GovernanceActionType
59-
);
60-
if (result) {
61-
return result;
62-
}
63-
}
64-
return null;
65-
}
66-
6750
async viewFirstProposalByGovernanceAction(
6851
governanceAction: GovernanceActionType
6952
): Promise<GovernanceActionDetailsPage> {

0 commit comments

Comments
 (0)