Commit b5039524 authored by tom's avatar tom

fix tests

parent e2f05cef
...@@ -83,7 +83,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => { ...@@ -83,7 +83,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
) } ) }
</Flex> </Flex>
<Flex alignItems="center" mb={ 3 }> <Flex alignItems="center" mb={ 3 }>
<Address> <Address mr={ 2 }>
<AddressIcon address={ tx.from } isLoading={ isLoading }/> <AddressIcon address={ tx.from } isLoading={ isLoading }/>
<AddressLink <AddressLink
type="address" type="address"
...@@ -99,12 +99,11 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => { ...@@ -99,12 +99,11 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
<Icon <Icon
as={ rightArrowIcon } as={ rightArrowIcon }
boxSize={ 6 } boxSize={ 6 }
mx={ 2 }
color="gray.500" color="gray.500"
isLoading={ isLoading } isLoading={ isLoading }
/> />
{ dataTo && ( { dataTo && (
<Address> <Address ml={ 2 }>
<AddressIcon address={ dataTo } isLoading={ isLoading }/> <AddressIcon address={ dataTo } isLoading={ isLoading }/>
<AddressLink <AddressLink
type="address" type="address"
......
...@@ -90,8 +90,8 @@ const WithdrawalsListItem = ({ item, isLoading }: Props) => { ...@@ -90,8 +90,8 @@ const WithdrawalsListItem = ({ item, isLoading }: Props) => {
overflow="hidden" overflow="hidden"
isLoading={ isLoading } isLoading={ isLoading }
> >
<Icon as={ txIcon } boxSize={ 6 } mr={ 1 } isLoading={ isLoading }/> <Icon as={ txIcon } boxSize={ 6 } isLoading={ isLoading }/>
<Skeleton isLoaded={ !isLoading } w="calc(100% - 44px)" overflow="hidden" whiteSpace="nowrap"> <Skeleton isLoaded={ !isLoading } w="calc(100% - 44px)" overflow="hidden" whiteSpace="nowrap" ml={ 1 }>
<HashStringShortenDynamic hash={ item.l1_tx_hash }/> <HashStringShortenDynamic hash={ item.l1_tx_hash }/>
</Skeleton> </Skeleton>
</LinkExternal> </LinkExternal>
......
...@@ -32,5 +32,5 @@ test('base view +@mobile', async({ mount, page }) => { ...@@ -32,5 +32,5 @@ test('base view +@mobile', async({ mount, page }) => {
</TestApp>, </TestApp>,
); );
await expect(component.locator('main')).toHaveScreenshot(); await expect(component).toHaveScreenshot();
}); });
...@@ -32,5 +32,5 @@ test('base view +@mobile', async({ mount, page }) => { ...@@ -32,5 +32,5 @@ test('base view +@mobile', async({ mount, page }) => {
</TestApp>, </TestApp>,
); );
await expect(component.locator('main')).toHaveScreenshot(); await expect(component).toHaveScreenshot();
}); });
...@@ -32,5 +32,5 @@ test('base view +@mobile', async({ mount, page }) => { ...@@ -32,5 +32,5 @@ test('base view +@mobile', async({ mount, page }) => {
</TestApp>, </TestApp>,
); );
await expect(component.locator('main')).toHaveScreenshot(); await expect(component).toHaveScreenshot();
}); });
...@@ -32,5 +32,5 @@ test('base view +@mobile', async({ mount, page }) => { ...@@ -32,5 +32,5 @@ test('base view +@mobile', async({ mount, page }) => {
</TestApp>, </TestApp>,
); );
await expect(component.locator('main')).toHaveScreenshot(); await expect(component).toHaveScreenshot();
}); });
...@@ -75,7 +75,7 @@ test('address verification flow', async({ mount, page }) => { ...@@ -75,7 +75,7 @@ test('address verification flow', async({ mount, page }) => {
// fill second step // fill second step
const option = page.getByText(/sign manually/i); const option = page.getByText(/sign manually/i);
option.click(); await option.click();
const signatureInput = page.getByLabel(/signature hash/i); const signatureInput = page.getByLabel(/signature hash/i);
await signatureInput.fill(mocks.SIGNATURE); await signatureInput.fill(mocks.SIGNATURE);
await page.getByRole('button', { name: /verify/i }).click(); await page.getByRole('button', { name: /verify/i }).click();
......
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