Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ test("4A_1. Should access Governance Actions page with connecting wallet", async
await openDrawer(page);
}

await page.getByTestId("governance-actions-link").click();
await expect(page.getByText(/Governance Actions/i)).toHaveCount(2);
await page.getByTestId("governance-actions-live-voting-link").click();
await expect(page.getByText(/Live Voting/i)).toHaveCount(2);
});

test("4B_1. Should restrict voting for users who are not registered as DReps (with wallet connected)", async ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import removeAllSpaces from "@helpers/removeAllSpaces";
import { functionWaitedAssert } from "@helpers/waitedLoop";
import extractExpiryDateFromText from "@helpers/extractExpiryDateFromText";
import { InvalidMetadata } from "@constants/index";
import { isMobile } from "@helpers/mobile";

test.beforeEach(async () => {
await setAllureEpic("4. Proposal visibility");
Expand Down Expand Up @@ -44,7 +45,11 @@ test("4A_2. Should access Governance Actions page without connecting wallet", as
await page.goto("/");
await page.getByTestId("move-to-governance-actions-button").click();

await expect(page.getByText(/Governance actions/i)).toHaveCount(2);
if (!isMobile(page)) {
await page.getByTestId("governance-actions").click();
}

await expect(page.getByText(/Live Voting/i)).toHaveCount(2);
});

test("4B_2. Should restrict voting for users who are not registered as DReps (without wallet connected)", async ({
Expand Down