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
19 lines
717 B
TypeScript
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 });
|
|
});
|