mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-25 06:04:54 +00:00
17 lines
628 B
TypeScript
17 lines
628 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test.describe('visual regression', () => {
|
|
test('json conversion showcase', async ({ page }) => {
|
|
await page.goto('/json-conversion-showcase')
|
|
await page.waitForLoadState('networkidle')
|
|
await page.waitForFunction(() => {
|
|
const root = document.querySelector('#root')
|
|
return root && root.textContent && root.textContent.length > 0
|
|
})
|
|
await page.addStyleTag({
|
|
content: '* { transition: none !important; animation: none !important; }',
|
|
})
|
|
await expect(page).toHaveScreenshot('json-conversion-showcase.png', { fullPage: true })
|
|
})
|
|
})
|