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
18 lines
502 B
TypeScript
18 lines
502 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { indexingStatus } from 'mocks/stats/index';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import LayoutHome from './LayoutHome';
|
|
|
|
test('base view +@mobile', async({ render, mockApiResponse }) => {
|
|
await mockApiResponse('homepage_indexing_status', indexingStatus);
|
|
const component = await render(
|
|
<LayoutHome>
|
|
<Box pt={ 10 }>Error</Box>
|
|
</LayoutHome>,
|
|
);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|