mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* add prefix to API resources * fix pw tests * refactor config * remove unnecessary prefixes in resource names * fixes * update screenshots
16 lines
560 B
TypeScript
16 lines
560 B
TypeScript
import React from 'react';
|
|
|
|
import * as statsMock from 'mocks/stats';
|
|
import * as txsStatsMock from 'mocks/txs/stats';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import TxsStats from './TxsStats';
|
|
|
|
test('base view +@mobile', async({ render, mockApiResponse, mockEnvs }) => {
|
|
await mockEnvs([ [ 'NEXT_PUBLIC_STATS_API_HOST', '' ] ]);
|
|
await mockApiResponse('general:stats', statsMock.base);
|
|
await mockApiResponse('general:txs_stats', txsStatsMock.base);
|
|
const component = await render(<TxsStats/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|