mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
21 lines
584 B
TypeScript
21 lines
584 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import AddressFromToIcon from './AddressFromToIcon';
|
|
import type { TxCourseType } from './utils';
|
|
|
|
test.use({ viewport: { width: 36, height: 36 } });
|
|
|
|
[ 'in', 'out', 'self', 'unspecified' ].forEach((type) => {
|
|
test(`${ type } txn type +@dark-mode`, async({ render }) => {
|
|
const component = await render(
|
|
<Box p={ 2 }>
|
|
<AddressFromToIcon type={ type as TxCourseType }/>
|
|
</Box>,
|
|
);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|
|
});
|