Files
explore/ui/pages/ZkEvmL2TxnBatches.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

18 lines
677 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 ZkEvmL2TxnBatches from './ZkEvmL2TxnBatches';
test('base view +@mobile', async({ render, mockTextAd, mockEnvs, mockApiResponse }) => {
test.slow();
await mockEnvs(ENVS_MAP.zkEvmRollup);
await mockTextAd();
await mockApiResponse('general:zkevm_l2_txn_batches', txnBatchesData);
await mockApiResponse('general:zkevm_l2_txn_batches_count', 9927);
const component = await render(<ZkEvmL2TxnBatches/>);
await expect(component).toHaveScreenshot({ timeout: 10_000 });
});