mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-25 22:25:01 +00:00
- Introduced Timestamp component for displaying formatted dates and relative time. - Added Toggle component for switch-like functionality with customizable sizes. - Implemented TreeIcon component for rendering tree icons using Phosphor icons. - Created EditorActions component for explain and improve actions with icons. - Developed FileTabs component for managing open files with close functionality. - Added LazyInlineMonacoEditor and LazyMonacoEditor for lazy loading Monaco editor. - Implemented NavigationItem for navigation with badges and icons. - Created PageHeaderContent for displaying page headers with icons and descriptions. - Added JSON configuration files for various UI components and layouts. - Enhanced data binding with new computed data source hook. - Updated component registry and types for new components. - Configured Vite for improved hot module replacement experience.
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('debug page load', async ({ page }) => {
|
|
const errors: string[] = []
|
|
const pageErrors: Error[] = []
|
|
|
|
page.on('console', (msg) => {
|
|
if (msg.type() === 'error') {
|
|
errors.push(msg.text())
|
|
}
|
|
})
|
|
|
|
page.on('pageerror', (error) => {
|
|
pageErrors.push(error)
|
|
})
|
|
|
|
await page.goto('/', { waitUntil: 'networkidle', timeout: 15000 })
|
|
|
|
// Wait a bit
|
|
await page.waitForTimeout(2000)
|
|
|
|
// Get page content
|
|
const html = await page.content()
|
|
const rootHTML = await page.locator('#root').innerHTML().catch(() => 'ERROR GETTING ROOT')
|
|
|
|
console.log('=== PAGE ERRORS ===')
|
|
pageErrors.forEach(err => console.log(err.message))
|
|
|
|
console.log('\n=== CONSOLE ERRORS ===')
|
|
errors.forEach(err => console.log(err))
|
|
|
|
console.log('\n=== ROOT CONTENT ===')
|
|
console.log(rootHTML.substring(0, 500))
|
|
|
|
console.log('\n=== ROOT VISIBLE ===')
|
|
const rootVisible = await page.locator('#root').isVisible().catch(() => false)
|
|
console.log('Root visible:', rootVisible)
|
|
|
|
console.log('\n=== ROOT HAS CHILDREN ===')
|
|
const childCount = await page.locator('#root > *').count()
|
|
console.log('Child count:', childCount)
|
|
})
|