mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* next part of test refactoring * more refactoring * more refactoring * fixes and clean-up * fixes * build fixes * more fixes
36 lines
878 B
TypeScript
36 lines
878 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import * as tokenTransferMock from 'mocks/tokens/tokenTransfer';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import TokenTransferTable from './TokenTransferTable';
|
|
|
|
test('without tx info', async({ render }) => {
|
|
const component = await render(
|
|
<Box pt={{ base: '134px', lg: 6 }}>
|
|
<TokenTransferTable
|
|
data={ tokenTransferMock.mixTokens.items }
|
|
top={ 0 }
|
|
showTxInfo={ false }
|
|
/>
|
|
</Box>,
|
|
);
|
|
|
|
await expect(component).toHaveScreenshot();
|
|
});
|
|
|
|
test('with tx info', async({ render }) => {
|
|
const component = await render(
|
|
<Box pt={{ base: '134px', lg: 6 }}>
|
|
<TokenTransferTable
|
|
data={ tokenTransferMock.mixTokens.items }
|
|
top={ 0 }
|
|
showTxInfo={ true }
|
|
/>
|
|
</Box>,
|
|
);
|
|
|
|
await expect(component).toHaveScreenshot();
|
|
});
|