mirror of
https://github.com/luxfi/explore.git
synced 2026-10-30 14:46:12 +00:00
* add prefix to API resources * fix pw tests * refactor config * remove unnecessary prefixes in resource names * fixes * update screenshots
16 lines
619 B
TypeScript
16 lines
619 B
TypeScript
import React from 'react';
|
|
|
|
import { finalized, unfinalized } from 'mocks/arbitrum/txnBatches';
|
|
import { ENVS_MAP } from 'playwright/fixtures/mockEnvs';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import LatestArbitrumL2Batches from './LatestArbitrumL2Batches';
|
|
|
|
test('default view +@mobile +@dark-mode', async({ render, mockEnvs, mockApiResponse }) => {
|
|
await mockEnvs(ENVS_MAP.arbitrumRollup);
|
|
await mockApiResponse('general:homepage_arbitrum_l2_batches', { items: [ finalized, unfinalized ] });
|
|
|
|
const component = await render(<LatestArbitrumL2Batches/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|