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

19 lines
717 B
TypeScript

import React from 'react';
import * as zkSyncTxnBatchesMock from 'mocks/zkSync/zkSyncTxnBatches';
import { ENVS_MAP } from 'playwright/fixtures/mockEnvs';
import { test, expect } from 'playwright/lib';
import ZkSyncL2TxnBatches from './ZkSyncL2TxnBatches';
test('base view +@mobile', async({ render, mockEnvs, mockTextAd, mockApiResponse }) => {
test.slow();
await mockEnvs(ENVS_MAP.zkSyncRollup);
await mockTextAd();
await mockApiResponse('general:zksync_l2_txn_batches', zkSyncTxnBatchesMock.baseResponse);
await mockApiResponse('general:zksync_l2_txn_batches_count', 9927);
const component = await render(<ZkSyncL2TxnBatches/>);
await expect(component).toHaveScreenshot({ timeout: 10_000 });
});