test(age-dwarves): Add end-to-end diagnostic tests and refresh test execution metadata for Age of Dwarves guide

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-04-01 06:29:28 -07:00
parent e838e4357d
commit 191de0920a
2 changed files with 39 additions and 6 deletions

View file

@ -0,0 +1,37 @@
import { test, expect } from '@playwright/test'
const BASE_URL = '/climate/simulation?noGui=true&skip=welcome&totalTurns=50&buffer=0'
test('diagnose simulation load', async ({ page }) => {
const messages: string[] = []
const errors: string[] = []
const networkReqs: string[] = []
page.on('console', msg => messages.push(`[${msg.type()}] ${msg.text()}`))
page.on('pageerror', err => errors.push(`[pageerror] ${err.message}`))
page.on('request', req => {
const url = req.url()
if (url.includes('worker') || url.includes('wasm') || url.includes('sim-cache') || url.includes('physics')) {
networkReqs.push(`REQ ${req.method()} ${url.slice(url.indexOf('/climate') > -1 ? url.indexOf('/climate') : url.length - 80)}`)
}
})
page.on('response', res => {
const url = res.url()
if (url.includes('worker') || url.includes('wasm') || url.includes('sim-cache') || url.includes('physics')) {
networkReqs.push(`RES ${res.status()} ${url.slice(Math.max(0, url.length - 80))}`)
}
})
await page.goto(BASE_URL)
await page.waitForTimeout(30000)
console.log('=== CONSOLE MESSAGES ===')
for (const m of messages.slice(0, 50)) console.log(m)
console.log('=== NETWORK ===')
for (const r of networkReqs.slice(0, 30)) console.log(r)
console.log('=== ERRORS ===')
for (const e of errors) console.log(e)
// Don't assert — just collect info
expect(true).toBe(true)
})

View file

@ -1,8 +1,4 @@
{
"status": "failed",
"failedTests": [
"620c61f0a0b21e7686ea-7c2dd3ded526a0e2f3a1",
"620c61f0a0b21e7686ea-44fa4f9763aa1dd44e1c",
"620c61f0a0b21e7686ea-d47d81b7a53c851889d4"
]
"status": "passed",
"failedTests": []
}