mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* next part of test refactoring * more refactoring * more refactoring * fixes and clean-up * fixes * build fixes * more fixes
12 lines
394 B
TypeScript
12 lines
394 B
TypeScript
import React from 'react';
|
|
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import NetworkExplorers from './NetworkExplorers';
|
|
|
|
test('base view', async({ render, page }) => {
|
|
const component = await render(<NetworkExplorers type="tx" pathParam="0x123"/>);
|
|
await component.getByText('2').click();
|
|
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 300, height: 150 } });
|
|
});
|