Skip to content

Commit

Permalink
chore: replace viewFirstDRepVoteEnabledGovAction with viewFirstGovAction
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerose committed Dec 18, 2024
1 parent f7ed2a3 commit 485c86f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ test.describe("Logged in DRep", () => {
? await govActionsPage.viewFirstProposalByGovernanceAction(
GovernanceActionType.InfoAction
)
: await govActionsPage.viewFirstDRepVoteEnabledGovernanceAction();
: await govActionsPage.viewFirstProposal();

await govActionDetailsPage.contextBtn.click();
await govActionDetailsPage.contextInput.fill(faker.lorem.sentence(200));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ import GovernanceActionDetailsPage from "@pages/governanceActionDetailsPage";
import GovernanceActionsPage from "@pages/governanceActionsPage";
import { Page, expect } from "@playwright/test";
import kuberService from "@services/kuberService";
import {
BootstrapGovernanceActionType,
GovernanceActionType,
} from "@types";
import { BootstrapGovernanceActionType, GovernanceActionType } from "@types";
import walletManager from "lib/walletManager";

const invalidInfinityProposals = require("../../lib/_mock/invalidInfinityProposals.json");
Expand Down Expand Up @@ -45,7 +42,7 @@ test.describe("Proposal checks", () => {
? await govActionsPage.viewFirstProposalByGovernanceAction(
GovernanceActionType.InfoAction
)
: await govActionsPage.viewFirstDRepVoteEnabledGovernanceAction();
: await govActionsPage.viewFirstProposal();
});

test("5A. Should show relevant details about governance action as DRep", async () => {
Expand Down Expand Up @@ -198,7 +195,7 @@ test.describe("Perform voting", () => {
? await govActionsPage.viewFirstProposalByGovernanceAction(
GovernanceActionType.InfoAction
)
: await govActionsPage.viewFirstDRepVoteEnabledGovernanceAction();
: await govActionsPage.viewFirstProposal();
});

test("5E. Should re-vote with new data on a already voted governance action", async ({}, testInfo) => {
Expand Down Expand Up @@ -287,9 +284,9 @@ test.describe("Bootstrap phase", () => {
test("5L. Should restrict dRep votes to Info Governance actions During Bootstrapping Phase", async ({
browser,
}) => {
const voteBlacklistOptions = Object.keys(BootstrapGovernanceActionType).filter(
(option) => option !== GovernanceActionType.InfoAction
);
const voteBlacklistOptions = Object.keys(
BootstrapGovernanceActionType
).filter((option) => option !== GovernanceActionType.InfoAction);

await Promise.all(
voteBlacklistOptions.map(async (voteBlacklistOption) => {
Expand Down

0 comments on commit 485c86f

Please sign in to comment.