Files
explore/ui/shared/logs/LogDecodedInputData.pw.tsx
T
tom goriunovandGitHub 22f8016a8f 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

17 lines
608 B
TypeScript

import React from 'react';
import * as mocks from 'mocks/txs/decodedInputData';
import { test, expect } from 'playwright/lib';
import LogDecodedInputData from './LogDecodedInputData';
test('with indexed fields +@mobile +@dark-mode', async({ render }) => {
const component = await render(<LogDecodedInputData data={ mocks.withIndexedFields }/>);
await expect(component).toHaveScreenshot();
});
test('without indexed fields +@mobile', async({ render }) => {
const component = await render(<LogDecodedInputData data={ mocks.withoutIndexedFields }/>);
await expect(component).toHaveScreenshot();
});