mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
21 lines
839 B
TypeScript
21 lines
839 B
TypeScript
import React from 'react';
|
|
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import ContractDetailsAlertProxyPattern from './ContractDetailsAlertProxyPattern';
|
|
|
|
test('proxy type with link +@mobile', async({ render }) => {
|
|
const component = await render(<ContractDetailsAlertProxyPattern type="eip1167" isLoading={ false }/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|
|
|
|
test('proxy type with link but without description', async({ render }) => {
|
|
const component = await render(<ContractDetailsAlertProxyPattern type="master_copy" isLoading={ false }/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|
|
|
|
test('proxy type without link', async({ render }) => {
|
|
const component = await render(<ContractDetailsAlertProxyPattern type="basic_implementation" isLoading={ false }/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|