Skip to content

Commit

Permalink
1E. Should hide incompatible wallets when connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
NabinKawan committed May 16, 2024
1 parent 36fab44 commit d516bd6
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Error> = [];
page.on("pageerror", (error) => {
Expand All @@ -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();
});

0 comments on commit d516bd6

Please sign in to comment.