From d516bd6a09b5be90d9d9e9055fa61e1c149e06be Mon Sep 17 00:00:00 2001 From: Nabin Kawan Date: Thu, 9 May 2024 20:40:21 +0545 Subject: [PATCH] 1E. Should hide incompatible wallets when connecting --- .../tests/1-wallet-connect/walletConnect.spec.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/govtool-frontend/playwright/tests/1-wallet-connect/walletConnect.spec.ts b/tests/govtool-frontend/playwright/tests/1-wallet-connect/walletConnect.spec.ts index 500786d0a..980271dbc 100644 --- a/tests/govtool-frontend/playwright/tests/1-wallet-connect/walletConnect.spec.ts +++ b/tests/govtool-frontend/playwright/tests/1-wallet-connect/walletConnect.spec.ts @@ -38,7 +38,9 @@ test("1D. Should check correct network (Testnet/Mainnet) on connection @smoke @f page, }) => { const wrongNetworkId = 1; // mainnet network - await createWallet(page, { networkId: wrongNetworkId }); + await createWallet(page, { + networkId: wrongNetworkId, + }); const errors: Array = []; page.on("pageerror", (error) => { @@ -50,3 +52,15 @@ test("1D. Should check correct network (Testnet/Mainnet) on connection @smoke @f expect(errors).not.toHaveLength(0); }); + +test("1E. Should hide incompatible wallets when connecting", async ({ + page, +}) => { + // Disabling cip95 support for wallet + await createWallet(page, { supportedExtensions: [] }); + + await page.goto("/"); + await page.getByTestId("connect-wallet-button").click(); + + await expect(page.getByTestId("demos-wallet-button")).not.toBeVisible(); +});