Files
tom goriunovandGitHub 24eb4fc014 API resource refactoring (#2699)
* add prefix to API resources

* fix pw tests

* refactor config

* remove unnecessary prefixes in resource names

* fixes

* update screenshots
2025-05-01 15:22:38 +02:00

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 });
});