From 86df750baa8051ca5eaabde8af057eb83bcc28c0 Mon Sep 17 00:00:00 2001 From: Nabin Kawan Date: Wed, 12 Jun 2024 14:12:10 +0545 Subject: [PATCH] chore: Refactor inconsistent test title numbering --- .../tests/4-proposal-visibility/proposalVisibility.spec.ts | 4 ++-- .../tests/6-miscellaneous/miscellaneous.dRep.spec.ts | 2 +- .../tests/6-miscellaneous/miscellaneous.loggedin.spec.ts | 6 +++--- .../playwright/tests/6-miscellaneous/miscellaneous.spec.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts b/tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts index 9f98d47f6..95a11f97d 100644 --- a/tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts +++ b/tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts @@ -8,7 +8,7 @@ test.beforeEach(async () => { await setAllureEpic("4. Proposal visibility"); }); -test("4A.2. Should access Governance Actions page without connecting wallet", async ({ +test("4A_2. Should access Governance Actions page without connecting wallet", async ({ page, }) => { await page.goto("/"); @@ -17,7 +17,7 @@ test("4A.2. Should access Governance Actions page without connecting wallet", as await expect(page.getByText(/Governance actions/i)).toHaveCount(2); }); -test("4B.2. Should restrict voting for users who are not registered as DReps (without wallet connected)", async ({ +test("4B_2. Should restrict voting for users who are not registered as DReps (without wallet connected)", async ({ page, }) => { const govActionsPage = new GovernanceActionsPage(page); diff --git a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.dRep.spec.ts b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.dRep.spec.ts index 3aa67e145..d55f1ecde 100644 --- a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.dRep.spec.ts +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.dRep.spec.ts @@ -13,7 +13,7 @@ test.use({ wallet: dRep01Wallet, }); -test("6H Should restrict dRep registration for dRep", async ({ page }) => { +test("6H. Should restrict dRep registration for dRep", async ({ page }) => { await page.goto(`${environments.frontendUrl}/register_drep`); await page.waitForTimeout(2_000); diff --git a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.loggedin.spec.ts b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.loggedin.spec.ts index 0049f11b0..22f58d5da 100644 --- a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.loggedin.spec.ts +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.loggedin.spec.ts @@ -15,7 +15,7 @@ test.use({ wallet: user01Wallet, }); -test("6E Should open Sanchonet docs in a new tab when clicking `Learn More` on dashboards in connected state.", async ({ +test("6E. Should open Sanchonet docs in a new tab when clicking `Learn More` on dashboards in connected state.", async ({ page, context, }) => { @@ -69,7 +69,7 @@ test("6E Should open Sanchonet docs in a new tab when clicking `Learn More` on d ); }); -test("6F should open sanchonet docs in a new tab when clicking `info` button of abstain and signal-no-confidence card", async ({ +test("6F. should open sanchonet docs in a new tab when clicking `info` button of abstain and signal-no-confidence card", async ({ page, context, }) => { @@ -95,7 +95,7 @@ test("6F should open sanchonet docs in a new tab when clicking `info` button of ); }); -test("6G Should restrict edit dRep for non dRep", async ({ page }) => { +test("6G. Should restrict edit dRep for non dRep", async ({ page }) => { const editDrepPage = new EditDRepPage(page); await editDrepPage.goto(); diff --git a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts index 0cb0ccfd8..67ee1af2d 100644 --- a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts @@ -46,7 +46,7 @@ test("6C. Navigation within the dApp", async ({ page, context }) => { expect(page.url()).toEqual(`${environments.frontendUrl}/`); }); -test("6D Should open Sanchonet docs in a new tab when clicking `Learn More` on dashboards in disconnected state.", async ({ +test("6D. Should open Sanchonet docs in a new tab when clicking `Learn More` on dashboards in disconnected state.", async ({ page, context, }) => {