Files
explore/ui/address/contract/alerts/ContractDetailsAlertProxyPattern.pw.tsx
tom goriunovandGitHub 0dd6087fa0 Remove proxy_type field from SmartContract model (#2671)
* remove `proxy_type` field from SmartContract model

* fix ts
2025-04-15 15:23:44 +02:00

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