Files
explore/ui/txs/TxsListItem.pw.tsx
tom goriunovandGitHub 1b977de269 Playwright tests refactoring, pt.5 (#1952)
* next part of test refactoring

* more refactoring

* more refactoring

* fixes and clean-up

* fixes

* build fixes

* more fixes
2024-05-25 15:41:32 +02:00

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();
});