Files
explore/ui/pages/ValidatorsZilliqa.pw.tsx
tom goriunovandGitHub fae4990e1f 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

21 lines
596 B
TypeScript

import React from 'react';
import * as validatorsMock from 'mocks/validators/zilliqa';
import { test, expect } from 'playwright/lib';
import Validators from './ValidatorsZilliqa';
const chainType = 'zilliqa';
test('base view +@mobile', async({ render, mockApiResponse, mockEnvs, mockTextAd }) => {
await mockEnvs([
[ 'NEXT_PUBLIC_VALIDATORS_CHAIN_TYPE', chainType ],
]);
await mockApiResponse('general:validators_zilliqa', validatorsMock.validatorsResponse);
await mockTextAd();
const component = await render(<Validators/>);
await expect(component).toHaveScreenshot();
});