mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* add prefix to API resources * fix pw tests * refactor config * remove unnecessary prefixes in resource names * fixes * update screenshots
18 lines
846 B
TypeScript
18 lines
846 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import * as tokenInstanceMock from 'mocks/tokens/tokenInstance';
|
|
import { mixTokens } from 'mocks/tokens/tokenTransfer';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import TokenTransfers from './TokenTransfers';
|
|
|
|
// FIXME: test is flaky, screenshot in docker container is different from local
|
|
test.skip('base view +@mobile', async({ render, mockTextAd, mockApiResponse, mockAssetResponse }) => {
|
|
await mockAssetResponse(tokenInstanceMock.base.image_url as string, './playwright/mocks/image_s.jpg');
|
|
await mockTextAd();
|
|
await mockApiResponse('general:token_transfers_all', mixTokens, { queryParams: { type: [ 'all' ] } });
|
|
const component = await render(<Box pt={{ base: '106px', lg: 0 }}> <TokenTransfers/> </Box>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|