Commit 64f1c268 authored by tom's avatar tom

fix tests

parent 135ae970
import { Flex } from '@chakra-ui/react';
import { test as base, expect, devices } from '@playwright/experimental-ct-react'; import { test as base, expect, devices } from '@playwright/experimental-ct-react';
import React from 'react'; import React from 'react';
...@@ -43,7 +44,9 @@ test('base view +@dark-mode', async({ mount, page }) => { ...@@ -43,7 +44,9 @@ test('base view +@dark-mode', async({ mount, page }) => {
await mount( await mount(
<TestApp> <TestApp>
<MockAddressPage> <MockAddressPage>
<TokenSelect/> <Flex>
<TokenSelect/>
</Flex>
</MockAddressPage> </MockAddressPage>
</TestApp>, </TestApp>,
{ hooksConfig }, { hooksConfig },
...@@ -66,7 +69,9 @@ test.describe('mobile', () => { ...@@ -66,7 +69,9 @@ test.describe('mobile', () => {
await mount( await mount(
<TestApp> <TestApp>
<MockAddressPage> <MockAddressPage>
<TokenSelect/> <Flex>
<TokenSelect/>
</Flex>
</MockAddressPage> </MockAddressPage>
</TestApp>, </TestApp>,
{ hooksConfig }, { hooksConfig },
...@@ -83,7 +88,9 @@ test('sort', async({ mount, page }) => { ...@@ -83,7 +88,9 @@ test('sort', async({ mount, page }) => {
await mount( await mount(
<TestApp> <TestApp>
<MockAddressPage> <MockAddressPage>
<TokenSelect/> <Flex>
<TokenSelect/>
</Flex>
</MockAddressPage> </MockAddressPage>
</TestApp>, </TestApp>,
{ hooksConfig }, { hooksConfig },
...@@ -104,7 +111,9 @@ test('filter', async({ mount, page }) => { ...@@ -104,7 +111,9 @@ test('filter', async({ mount, page }) => {
await mount( await mount(
<TestApp> <TestApp>
<MockAddressPage> <MockAddressPage>
<TokenSelect/> <Flex>
<TokenSelect/>
</Flex>
</MockAddressPage> </MockAddressPage>
</TestApp>, </TestApp>,
{ hooksConfig }, { hooksConfig },
...@@ -125,7 +134,9 @@ test.describe('socket', () => { ...@@ -125,7 +134,9 @@ test.describe('socket', () => {
await mount( await mount(
<TestApp withSocket> <TestApp withSocket>
<MockAddressPage> <MockAddressPage>
<TokenSelect/> <Flex>
<TokenSelect/>
</Flex>
</MockAddressPage> </MockAddressPage>
</TestApp>, </TestApp>,
{ hooksConfig }, { hooksConfig },
...@@ -154,7 +165,9 @@ test.describe('socket', () => { ...@@ -154,7 +165,9 @@ test.describe('socket', () => {
await mount( await mount(
<TestApp withSocket> <TestApp withSocket>
<MockAddressPage> <MockAddressPage>
<TokenSelect/> <Flex>
<TokenSelect/>
</Flex>
</MockAddressPage> </MockAddressPage>
</TestApp>, </TestApp>,
{ hooksConfig }, { hooksConfig },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment