From 0550022cb7fd6423fcae87bcf52c3f746f80f7e8 Mon Sep 17 00:00:00 2001 From: Felipe Mendes Date: Tue, 24 Sep 2024 22:18:01 -0300 Subject: [PATCH] test: fix networn disabled tests --- apps/laboratory/src/utils/ConstantsUtil.ts | 5 +++-- .../tests/multichain/multichain-ethers-solana.spec.ts | 2 +- .../tests/multichain/multichain-ethers5-solana.spec.ts | 2 +- .../tests/multichain/multichain-wagmi-solana.spec.ts | 2 +- apps/laboratory/tests/wallet.spec.ts | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/laboratory/src/utils/ConstantsUtil.ts b/apps/laboratory/src/utils/ConstantsUtil.ts index 64dc893a8e..17c863c188 100644 --- a/apps/laboratory/src/utils/ConstantsUtil.ts +++ b/apps/laboratory/src/utils/ConstantsUtil.ts @@ -8,7 +8,8 @@ import { solana, solanaTestnet, solanaDevnet, - base + base, + gnosis } from '@reown/appkit/networks' import { getLocalStorageItem } from './LocalStorage' @@ -48,7 +49,7 @@ if (typeof window !== 'undefined') { const customWallet = storedCustomWallet ? [JSON.parse(storedCustomWallet)] : [] -const EvmNetworks = [mainnet, optimism, polygon, zkSync, arbitrum, base, sepolia] +const EvmNetworks = [mainnet, optimism, polygon, zkSync, arbitrum, base, sepolia, gnosis] const SolanaNetworks = [solana, solanaTestnet, solanaDevnet] export const ConstantsUtil = { diff --git a/apps/laboratory/tests/multichain/multichain-ethers-solana.spec.ts b/apps/laboratory/tests/multichain/multichain-ethers-solana.spec.ts index e1b47501eb..948482a932 100644 --- a/apps/laboratory/tests/multichain/multichain-ethers-solana.spec.ts +++ b/apps/laboratory/tests/multichain/multichain-ethers-solana.spec.ts @@ -40,7 +40,7 @@ test('it should fetch balance as expected', async () => { }) test('it should show disabled networks', async () => { - const disabledNetworks = 'Arbitrum' + const disabledNetworks = 'Gnosis' await modalPage.openModal() await modalPage.openNetworks() diff --git a/apps/laboratory/tests/multichain/multichain-ethers5-solana.spec.ts b/apps/laboratory/tests/multichain/multichain-ethers5-solana.spec.ts index 2189792597..3588dd2c4e 100644 --- a/apps/laboratory/tests/multichain/multichain-ethers5-solana.spec.ts +++ b/apps/laboratory/tests/multichain/multichain-ethers5-solana.spec.ts @@ -40,7 +40,7 @@ test('it should fetch balance as expected', async () => { }) test('it should show disabled networks', async () => { - const disabledNetworks = 'Arbitrum' + const disabledNetworks = 'Gnosis' await modalPage.openModal() await modalPage.openNetworks() diff --git a/apps/laboratory/tests/multichain/multichain-wagmi-solana.spec.ts b/apps/laboratory/tests/multichain/multichain-wagmi-solana.spec.ts index 1d6740bd4e..41bfdca397 100644 --- a/apps/laboratory/tests/multichain/multichain-wagmi-solana.spec.ts +++ b/apps/laboratory/tests/multichain/multichain-wagmi-solana.spec.ts @@ -40,7 +40,7 @@ test('it should fetch balance as expected', async () => { }) test('it should show disabled networks', async () => { - const disabledNetworks = 'Arbitrum' + const disabledNetworks = 'Gnosis' await modalPage.openModal() await modalPage.openNetworks() diff --git a/apps/laboratory/tests/wallet.spec.ts b/apps/laboratory/tests/wallet.spec.ts index 23047c3240..ee7380e6a8 100644 --- a/apps/laboratory/tests/wallet.spec.ts +++ b/apps/laboratory/tests/wallet.spec.ts @@ -43,8 +43,8 @@ sampleWalletTest('it should fetch balance as expected', async ({ library }) => { await modalValidator.expectBalanceFetched(library === 'solana' ? 'SOL' : 'ETH') }) -sampleWalletTest('it should show disabled networks', async ({ library }) => { - const disabledNetworks = library === 'solana' ? 'Solana Unsupported' : 'Arbitrum' +sampleWalletTest('it should show disabled networks', async () => { + const disabledNetworks = 'Gnosis' await modalPage.openModal() await modalPage.openNetworks()