Files
explore/ui/home/latestBatches/LatestZkEvmL2Batches.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

16 lines
570 B
TypeScript

import React from 'react';
import { txnBatchesData } from 'mocks/zkEvm/txnBatches';
import { ENVS_MAP } from 'playwright/fixtures/mockEnvs';
import { test, expect } from 'playwright/lib';
import LatestZkEvmL2Batches from './LatestZkEvmL2Batches';
test('default view +@mobile +@dark-mode', async({ render, mockEnvs, mockApiResponse }) => {
await mockEnvs(ENVS_MAP.zkEvmRollup);
await mockApiResponse('general:homepage_zkevm_l2_batches', txnBatchesData);
const component = await render(<LatestZkEvmL2Batches/>);
await expect(component).toHaveScreenshot();
});