mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
26 lines
745 B
TypeScript
26 lines
745 B
TypeScript
import { test, expect } from '@playwright/experimental-ct-react';
|
|
import React from 'react';
|
|
|
|
import * as mocks from 'mocks/txs/decodedInputData';
|
|
import TestApp from 'playwright/TestApp';
|
|
|
|
import LogDecodedInputData from './LogDecodedInputData';
|
|
|
|
test('with indexed fields +@mobile +@dark-mode', async({ mount }) => {
|
|
const component = await mount(
|
|
<TestApp>
|
|
<LogDecodedInputData data={ mocks.withIndexedFields }/>
|
|
</TestApp>,
|
|
);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|
|
|
|
test('without indexed fields +@mobile', async({ mount }) => {
|
|
const component = await mount(
|
|
<TestApp>
|
|
<LogDecodedInputData data={ mocks.withoutIndexedFields }/>
|
|
</TestApp>,
|
|
);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|