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)