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
17 lines
733 B
TypeScript
17 lines
733 B
TypeScript
import React from 'react';
|
|
|
|
import { data as withdrawalsData } from 'mocks/withdrawals/withdrawals';
|
|
import { ENVS_MAP } from 'playwright/fixtures/mockEnvs';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import BeaconChainWithdrawals from './BeaconChainWithdrawals';
|
|
|
|
test('base view +@mobile', async({ render, mockEnvs, mockTextAd, mockApiResponse }) => {
|
|
await mockEnvs(ENVS_MAP.beaconChain);
|
|
await mockTextAd();
|
|
await mockApiResponse('general:withdrawals', withdrawalsData);
|
|
await mockApiResponse('general:withdrawals_counters', { withdrawals_count: '111111', withdrawals_sum: '1010101010110101001101010' });
|
|
const component = await render(<BeaconChainWithdrawals/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|