Skip to content

Commit

Permalink
test: fix networn disabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zoruka committed Sep 25, 2024
1 parent fd8c176 commit 0550022
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions apps/laboratory/src/utils/ConstantsUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
solana,
solanaTestnet,
solanaDevnet,
base
base,
gnosis
} from '@reown/appkit/networks'
import { getLocalStorageItem } from './LocalStorage'

Expand Down Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions apps/laboratory/tests/wallet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0550022

Please sign in to comment.