mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* next part of test refactoring * more refactoring * more refactoring * fixes and clean-up * fixes * build fixes * more fixes
19 lines
665 B
TypeScript
19 lines
665 B
TypeScript
import React from 'react';
|
|
|
|
import * as txMock from 'mocks/txs/tx';
|
|
import { test, expect, devices } from 'playwright/lib';
|
|
|
|
import TxsListItem from './TxsListItem';
|
|
|
|
test.use({ viewport: devices['iPhone 13 Pro'].viewport });
|
|
|
|
test('base view +@dark-mode', async({ render }) => {
|
|
const component = await render(<TxsListItem tx={ txMock.withWatchListNames } showBlockInfo/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|
|
|
|
test('with base address', async({ render }) => {
|
|
const component = await render(<TxsListItem tx={ txMock.withWatchListNames } showBlockInfo currentAddress={ txMock.base.from.hash }/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|