This repository has been archived on 2026-03-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
drive/ui/e2e/debug.spec.ts

21 lines
595 B
TypeScript
Raw Permalink Normal View History

import { test, expect } from '@playwright/test'
test('debug: check console errors', async ({ page }) => {
const errors: string[] = []
page.on('console', msg => {
if (msg.type() === 'error') errors.push(msg.text())
})
page.on('pageerror', err => errors.push(err.message))
await page.goto('/')
await page.waitForTimeout(3000)
console.log('=== Console errors ===')
for (const e of errors) console.log(e)
console.log('=== End errors ===')
const content = await page.content()
console.log('=== Page HTML (first 2000 chars) ===')
console.log(content.slice(0, 2000))
})