From aabe7bb1475b41b94b660e165fb00d4bf101ad11 Mon Sep 17 00:00:00 2001 From: stroblme Date: Mon, 17 Aug 2026 12:08:32 +0200 Subject: [PATCH] Let the Home capture wait for the sections that load on their own 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) Claude-Session: https://claude.ai/code/session_01XC2jX6Hdj7pxGGKzBTrbqB --- frontend/scripts/capture-screenshots.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/scripts/capture-screenshots.mjs b/frontend/scripts/capture-screenshots.mjs index 99f2991..c5337fc 100644 --- a/frontend/scripts/capture-screenshots.mjs +++ b/frontend/scripts/capture-screenshots.mjs @@ -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)