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
638 B
TypeScript
18 lines
638 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { userOpsData } from 'mocks/userOps/userOps';
|
|
import { ENVS_MAP } from 'playwright/fixtures/mockEnvs';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import UserOps from './UserOps';
|
|
|
|
test('base view +@mobile', async({ render, mockEnvs, mockTextAd, mockApiResponse }) => {
|
|
test.slow();
|
|
await mockEnvs(ENVS_MAP.userOps);
|
|
await mockTextAd();
|
|
await mockApiResponse('general:user_ops', userOpsData);
|
|
const component = await render(<Box pt={{ base: '106px', lg: 0 }}> <UserOps/> </Box>);
|
|
await expect(component).toHaveScreenshot({ timeout: 10_000 });
|
|
});
|