Skip to content

Commit da05827

Browse files
committed
chore: remove restrictions and check on all governance actions for dRep
1 parent 1d10b8e commit da05827

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import removeAllSpaces from "@helpers/removeAllSpaces";
22
import { Locator, Page, expect } from "@playwright/test";
33
import {
4-
FullGovernanceDRepVoteActionsType,
54
GovernanceActionType,
65
IProposal,
76
} from "@types";
@@ -53,7 +52,7 @@ export default class GovernanceActionsPage {
5352

5453
async viewFirstDRepVoteEnabledGovernanceAction(): Promise<GovernanceActionDetailsPage> {
5554
for (const governanceAction of Object.keys(
56-
FullGovernanceDRepVoteActionsType
55+
GovernanceActionType
5756
)) {
5857
const result = await this.viewFirstProposalByGovernanceAction(
5958
governanceAction as GovernanceActionType

tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.dRep.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ import { createNewPageWithWallet } from "@helpers/page";
1414
import GovernanceActionsPage from "@pages/governanceActionsPage";
1515
import { Page, expect } from "@playwright/test";
1616
import { invalid as mockInvalid, valid as mockValid } from "@mock/index";
17-
import {
18-
FullGovernanceDRepVoteActionsType,
19-
GovernanceActionType,
20-
IProposal,
21-
} from "@types";
17+
import { GovernanceActionType, IProposal } from "@types";
2218
import walletManager from "lib/walletManager";
2319
import GovernanceActionDetailsPage from "@pages/governanceActionDetailsPage";
2420
import { correctVoteAdaFormat } from "@helpers/adaFormat";
@@ -146,7 +142,7 @@ test.describe("Check vote count", () => {
146142
}) => {
147143
const voteWhiteListOption = (await isBootStrapingPhase())
148144
? { InfoAction: "InfoAction" }
149-
: FullGovernanceDRepVoteActionsType;
145+
: GovernanceActionType;
150146
const responsesPromise = Object.keys(voteWhiteListOption).map((filterKey) =>
151147
page.waitForResponse((response) =>
152148
response.url().includes(`&type[]=${voteWhiteListOption[filterKey]}`)

0 commit comments

Comments
 (0)