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(); +});