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
22 lines
713 B
TypeScript
22 lines
713 B
TypeScript
import React from 'react';
|
|
|
|
import * as validatorsMock from 'mocks/validators/stability';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import Validators from './ValidatorsStability';
|
|
|
|
const chainType = 'stability';
|
|
|
|
test('base view +@mobile', async({ render, mockApiResponse, mockEnvs, mockTextAd }) => {
|
|
await mockEnvs([
|
|
[ 'NEXT_PUBLIC_VALIDATORS_CHAIN_TYPE', chainType ],
|
|
]);
|
|
await mockApiResponse('general:validators_stability', validatorsMock.validatorsResponse);
|
|
await mockApiResponse('general:validators_stability_counters', validatorsMock.validatorsCountersResponse);
|
|
await mockTextAd();
|
|
|
|
const component = await render(<Validators/>);
|
|
|
|
await expect(component).toHaveScreenshot();
|
|
});
|