From 84a968d01b4b10926f0f57e82d15cf00590e04e4 Mon Sep 17 00:00:00 2001 From: niraj Date: Fri, 7 Jun 2024 08:03:44 +0545 Subject: [PATCH 1/5] test: Dashboard learn more button action --- .../6-miscellaneous/miscellaneous.spec.ts | 106 +++++++++++++++++- 1 file changed, 105 insertions(+), 1 deletion(-) 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 8c632c424..091cab4c3 100644 --- a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts @@ -1,6 +1,8 @@ +import { user01Wallet } from "@constants/staticWallets"; +import { test } from "@fixtures/walletExtension"; import { setAllureEpic } from "@helpers/allure"; import { isMobile, openDrawer } from "@helpers/mobile"; -import { expect, test } from "@playwright/test"; +import { expect } from "@playwright/test"; import environments from "lib/constants/environments"; test.beforeEach(async () => { @@ -44,3 +46,105 @@ test("6C. Navigation within the dApp", async ({ page, context }) => { await page.getByTestId("dashboard-link").click(); 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 ({ + page, + context, +}) => { + await page.goto("/"); + + const [delegationLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("delegate-learn-more-button").click(), + ]); + + await expect(delegationLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/ways-to-use-your-voting-power` + ); + + const [registerLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("register-learn-more-button").click(), + ]); + + await expect(registerLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/what-does-it-mean-to-register-as-a-drep` + ); + + const [directVoterLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("lear-more-about-sole-voter-button").click(), + ]); + + await expect(directVoterLearnMorepage).toHaveURL(`${environments.docsUrl}`); + + const [proposed_GA_VoterLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByRole("button", { name: "Learn more" }).nth(3).click(), + ]); + + await expect(proposed_GA_VoterLearnMorepage).toHaveURL( + `${environments.docsUrl}` + ); +}); + +test.describe("wallet connect state", () => { + test.use({ + storageState: ".auth/user01.json", + wallet: user01Wallet, + }); + + test("6E Should open Sanchonet docs in a new tab when clicking `Learn More` on dashboards in connected state.", async ({ + page, + context, + }) => { + await page.goto("/"); + + const [delegationLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("delegate-learn-more-button").click(), + ]); + + await expect(delegationLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/ways-to-use-your-voting-power` + ); + + const [registerLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("register-learn-more-button").click(), + ]); + + await expect(registerLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/what-does-it-mean-to-register-as-a-drep` + ); + + const [directVoterLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("learn-more-button").first().click(), + ]); + + await expect(directVoterLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/what-does-it-mean-to-register-as-a-drep` + ); + + const [GA_LearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("learn-more-governance-actions-button").click(), + ]); + + await expect(GA_LearnMorepage).toHaveURL("https://sancho.network/actions/"); + + const [proposed_GA_VoterLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page + .locator("div") + .filter({ hasText: /^ProposeLearn more$/ }) + .getByTestId("learn-more-button") + .click(), + ]); + + await expect(proposed_GA_VoterLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/what-is-a-governance-action` + ); + }); +}); From 828ea2d4d5f57b53ee75c0fbb6b2b2352ae8a805 Mon Sep 17 00:00:00 2001 From: niraj Date: Fri, 7 Jun 2024 08:09:32 +0545 Subject: [PATCH 2/5] test: Abstain and signal-no-confidence info button action --- .../6-miscellaneous/miscellaneous.spec.ts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) 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 091cab4c3..0e2796ae5 100644 --- a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts @@ -2,6 +2,7 @@ import { user01Wallet } from "@constants/staticWallets"; import { test } from "@fixtures/walletExtension"; import { setAllureEpic } from "@helpers/allure"; import { isMobile, openDrawer } from "@helpers/mobile"; +import DRepDirectoryPage from "@pages/dRepDirectoryPage"; import { expect } from "@playwright/test"; import environments from "lib/constants/environments"; @@ -147,4 +148,30 @@ test.describe("wallet connect state", () => { `${environments.docsUrl}/faqs/what-is-a-governance-action` ); }); + + test("6F should open sanchonet docs in a new tab when clicking `info` button of abstain and signal-no-confidence card", async ({ + page, + context, + }) => { + const dRepDirectoryPage = new DRepDirectoryPage(page); + await dRepDirectoryPage.goto(); + + await dRepDirectoryPage.automaticDelegationOptionsDropdown.click(); + + const [abstain_Info_Page] = await Promise.all([ + context.waitForEvent("page"), + dRepDirectoryPage.abstainInfoButton.click(), + ]); + + await expect(abstain_Info_Page).toHaveURL(`${environments.docsUrl}`); + + const [signal_No_Confidence_Info_Page] = await Promise.all([ + context.waitForEvent("page"), + dRepDirectoryPage.signalNoConfidenceInfoButton.click(), + ]); + + await expect(signal_No_Confidence_Info_Page).toHaveURL( + `${environments.docsUrl}` + ); + }); }); From 45ff0a86c9d6dfb83bd2f962cd4b4ce802945a9a Mon Sep 17 00:00:00 2001 From: niraj Date: Fri, 7 Jun 2024 08:17:01 +0545 Subject: [PATCH 3/5] test: DRep registration and edit dRep registration page restriction --- .../6-miscellaneous/miscellaneous.spec.ts | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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 0e2796ae5..b03a4131e 100644 --- a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts @@ -1,8 +1,9 @@ -import { user01Wallet } from "@constants/staticWallets"; +import { dRep01Wallet, user01Wallet } from "@constants/staticWallets"; import { test } from "@fixtures/walletExtension"; import { setAllureEpic } from "@helpers/allure"; import { isMobile, openDrawer } from "@helpers/mobile"; import DRepDirectoryPage from "@pages/dRepDirectoryPage"; +import EditDRepPage from "@pages/editDRepPage"; import { expect } from "@playwright/test"; import environments from "lib/constants/environments"; @@ -174,4 +175,27 @@ test.describe("wallet connect state", () => { `${environments.docsUrl}` ); }); + + test("6G Should restrict edit dRep for non dRep", async ({ page }) => { + const editDrepPage = new EditDRepPage(page); + await editDrepPage.goto(); + + await page.waitForTimeout(2_000); + await expect(editDrepPage.nameInput).not.toBeVisible(); + }); +}); + +test.describe("Registration Restriction", () => { + test.use({ + storageState: ".auth/dRep01.json", + wallet: dRep01Wallet, + }); + + test("6H Should restrict dRep registration for dRep", async ({ page }) => { + await page.goto(`${environments.frontendUrl}/register_drep`); + + await page.waitForTimeout(2_000); + + await expect(page.getByTestId("name-input")).not.toBeVisible(); + }); }); From d01e85af8d31b5e5ba8c3dc507456a76b83c075b Mon Sep 17 00:00:00 2001 From: niraj Date: Fri, 7 Jun 2024 10:39:35 +0545 Subject: [PATCH 4/5] refactor: Split miscellaneous tests based on dRep and loggedin dependency --- .../miscellaneous.dRep.spec.ts | 22 ++++ .../miscellaneous.loggedin.spec.ts | 104 ++++++++++++++++ .../6-miscellaneous/miscellaneous.spec.ts | 115 +----------------- 3 files changed, 127 insertions(+), 114 deletions(-) create mode 100644 tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.dRep.spec.ts create mode 100644 tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.loggedin.spec.ts 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 new file mode 100644 index 000000000..3aa67e145 --- /dev/null +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.dRep.spec.ts @@ -0,0 +1,22 @@ +import environments from "@constants/environments"; +import { dRep01Wallet } from "@constants/staticWallets"; +import { test } from "@fixtures/walletExtension"; +import { setAllureEpic } from "@helpers/allure"; +import { expect } from "@playwright/test"; + +test.beforeEach(async () => { + await setAllureEpic("6. Miscellaneous"); +}); + +test.use({ + storageState: ".auth/dRep01.json", + wallet: dRep01Wallet, +}); + +test("6H Should restrict dRep registration for dRep", async ({ page }) => { + await page.goto(`${environments.frontendUrl}/register_drep`); + + await page.waitForTimeout(2_000); + + await expect(page.getByTestId("name-input")).not.toBeVisible(); +}); 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 new file mode 100644 index 000000000..0049f11b0 --- /dev/null +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.loggedin.spec.ts @@ -0,0 +1,104 @@ +import environments from "@constants/environments"; +import { user01Wallet } from "@constants/staticWallets"; +import { test } from "@fixtures/walletExtension"; +import { setAllureEpic } from "@helpers/allure"; +import DRepDirectoryPage from "@pages/dRepDirectoryPage"; +import EditDRepPage from "@pages/editDRepPage"; +import { expect } from "@playwright/test"; + +test.beforeEach(async () => { + await setAllureEpic("6. Miscellaneous"); +}); + +test.use({ + storageState: ".auth/user01.json", + wallet: user01Wallet, +}); + +test("6E Should open Sanchonet docs in a new tab when clicking `Learn More` on dashboards in connected state.", async ({ + page, + context, +}) => { + await page.goto("/"); + + const [delegationLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("delegate-learn-more-button").click(), + ]); + + await expect(delegationLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/ways-to-use-your-voting-power` + ); + + const [registerLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("register-learn-more-button").click(), + ]); + + await expect(registerLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/what-does-it-mean-to-register-as-a-drep` + ); + + const [directVoterLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("learn-more-button").first().click(), // BUG should be unique test id + ]); + + await expect(directVoterLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/what-does-it-mean-to-register-as-a-drep` + ); + + const [GA_LearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page.getByTestId("learn-more-governance-actions-button").click(), + ]); + + await expect(GA_LearnMorepage).toHaveURL("https://sancho.network/actions/"); + + const [proposed_GA_VoterLearnMorepage] = await Promise.all([ + context.waitForEvent("page"), + page + .locator("div") + .filter({ hasText: /^ProposeLearn more$/ }) + .getByTestId("learn-more-button") + .click(), + ]); // BUG should be unique test id + + await expect(proposed_GA_VoterLearnMorepage).toHaveURL( + `${environments.docsUrl}/faqs/what-is-a-governance-action` + ); +}); + +test("6F should open sanchonet docs in a new tab when clicking `info` button of abstain and signal-no-confidence card", async ({ + page, + context, +}) => { + const dRepDirectoryPage = new DRepDirectoryPage(page); + await dRepDirectoryPage.goto(); + + await dRepDirectoryPage.automaticDelegationOptionsDropdown.click(); + + const [abstain_Info_Page] = await Promise.all([ + context.waitForEvent("page"), + dRepDirectoryPage.abstainInfoButton.click(), + ]); + + await expect(abstain_Info_Page).toHaveURL(`${environments.docsUrl}`); + + const [signal_No_Confidence_Info_Page] = await Promise.all([ + context.waitForEvent("page"), + dRepDirectoryPage.signalNoConfidenceInfoButton.click(), + ]); + + await expect(signal_No_Confidence_Info_Page).toHaveURL( + `${environments.docsUrl}` + ); +}); + +test("6G Should restrict edit dRep for non dRep", async ({ page }) => { + const editDrepPage = new EditDRepPage(page); + await editDrepPage.goto(); + + await page.waitForTimeout(2_000); + await expect(editDrepPage.nameInput).not.toBeVisible(); +}); 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 b03a4131e..0cb0ccfd8 100644 --- a/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts +++ b/tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts @@ -1,9 +1,6 @@ -import { dRep01Wallet, user01Wallet } from "@constants/staticWallets"; import { test } from "@fixtures/walletExtension"; import { setAllureEpic } from "@helpers/allure"; import { isMobile, openDrawer } from "@helpers/mobile"; -import DRepDirectoryPage from "@pages/dRepDirectoryPage"; -import EditDRepPage from "@pages/editDRepPage"; import { expect } from "@playwright/test"; import environments from "lib/constants/environments"; @@ -82,120 +79,10 @@ test("6D Should open Sanchonet docs in a new tab when clicking `Learn More` on d const [proposed_GA_VoterLearnMorepage] = await Promise.all([ context.waitForEvent("page"), - page.getByRole("button", { name: "Learn more" }).nth(3).click(), + page.getByRole("button", { name: "Learn more" }).nth(3).click(), // BUG missing test id ]); await expect(proposed_GA_VoterLearnMorepage).toHaveURL( `${environments.docsUrl}` ); }); - -test.describe("wallet connect state", () => { - test.use({ - storageState: ".auth/user01.json", - wallet: user01Wallet, - }); - - test("6E Should open Sanchonet docs in a new tab when clicking `Learn More` on dashboards in connected state.", async ({ - page, - context, - }) => { - await page.goto("/"); - - const [delegationLearnMorepage] = await Promise.all([ - context.waitForEvent("page"), - page.getByTestId("delegate-learn-more-button").click(), - ]); - - await expect(delegationLearnMorepage).toHaveURL( - `${environments.docsUrl}/faqs/ways-to-use-your-voting-power` - ); - - const [registerLearnMorepage] = await Promise.all([ - context.waitForEvent("page"), - page.getByTestId("register-learn-more-button").click(), - ]); - - await expect(registerLearnMorepage).toHaveURL( - `${environments.docsUrl}/faqs/what-does-it-mean-to-register-as-a-drep` - ); - - const [directVoterLearnMorepage] = await Promise.all([ - context.waitForEvent("page"), - page.getByTestId("learn-more-button").first().click(), - ]); - - await expect(directVoterLearnMorepage).toHaveURL( - `${environments.docsUrl}/faqs/what-does-it-mean-to-register-as-a-drep` - ); - - const [GA_LearnMorepage] = await Promise.all([ - context.waitForEvent("page"), - page.getByTestId("learn-more-governance-actions-button").click(), - ]); - - await expect(GA_LearnMorepage).toHaveURL("https://sancho.network/actions/"); - - const [proposed_GA_VoterLearnMorepage] = await Promise.all([ - context.waitForEvent("page"), - page - .locator("div") - .filter({ hasText: /^ProposeLearn more$/ }) - .getByTestId("learn-more-button") - .click(), - ]); - - await expect(proposed_GA_VoterLearnMorepage).toHaveURL( - `${environments.docsUrl}/faqs/what-is-a-governance-action` - ); - }); - - test("6F should open sanchonet docs in a new tab when clicking `info` button of abstain and signal-no-confidence card", async ({ - page, - context, - }) => { - const dRepDirectoryPage = new DRepDirectoryPage(page); - await dRepDirectoryPage.goto(); - - await dRepDirectoryPage.automaticDelegationOptionsDropdown.click(); - - const [abstain_Info_Page] = await Promise.all([ - context.waitForEvent("page"), - dRepDirectoryPage.abstainInfoButton.click(), - ]); - - await expect(abstain_Info_Page).toHaveURL(`${environments.docsUrl}`); - - const [signal_No_Confidence_Info_Page] = await Promise.all([ - context.waitForEvent("page"), - dRepDirectoryPage.signalNoConfidenceInfoButton.click(), - ]); - - await expect(signal_No_Confidence_Info_Page).toHaveURL( - `${environments.docsUrl}` - ); - }); - - test("6G Should restrict edit dRep for non dRep", async ({ page }) => { - const editDrepPage = new EditDRepPage(page); - await editDrepPage.goto(); - - await page.waitForTimeout(2_000); - await expect(editDrepPage.nameInput).not.toBeVisible(); - }); -}); - -test.describe("Registration Restriction", () => { - test.use({ - storageState: ".auth/dRep01.json", - wallet: dRep01Wallet, - }); - - test("6H Should restrict dRep registration for dRep", async ({ page }) => { - await page.goto(`${environments.frontendUrl}/register_drep`); - - await page.waitForTimeout(2_000); - - await expect(page.getByTestId("name-input")).not.toBeVisible(); - }); -}); From 86df750baa8051ca5eaabde8af057eb83bcc28c0 Mon Sep 17 00:00:00 2001 From: Nabin Kawan Date: Wed, 12 Jun 2024 14:12:10 +0545 Subject: [PATCH 5/5] 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, }) => {