Let the Home capture wait for the sections that load on their own
Playwright Tests / test-playwright (1, 2) (push) Canceled after 0s
Playwright Tests / test-playwright (2, 2) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Compose Smoke Test / test-compose (push) Canceled after 0s
Playwright Tests / merge-reports (push) Canceled after 0s

networkidle now falls between Home's independent fetches, so make verify was
photographing the skeletons: no name, no Admin nav, "No flows yet" and zeroed
tiles on an instance with three flows.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XC2jX6Hdj7pxGGKzBTrbqB
This commit is contained in:
2026-08-17 12:08:32 +02:00
co-authored by Claude Opus 5
parent 2ba56f57b2
commit aabe7bb147
+7
View File
@@ -65,6 +65,13 @@ for (const theme of ["light", "dark"]) {
await page.getByRole("button", { name: /log in/i }).click()
await page.waitForURL(`${APP_URL}/`, { timeout: 15000 })
await page.waitForLoadState("networkidle")
// Home's sections fetch independently, so networkidle can fall between them
// and photograph the skeletons. The flow table is the last of them to land.
await page
.getByText(/Flow activity/i)
.first()
.waitFor({ timeout: 15000 })
await page.waitForTimeout(1500)
await page.screenshot({ path: `${dir}/app-dashboard.png` })
await captureFlows(page, dir)