Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 140858670b352c375e79da46d65015bcf8eaa2e9
parent d5e7dff9d600cb61d65ff18958846d18d70fadb2
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 24 Nov 2026 18:33:24 -0500

space-suggestions: e2e — wait for the scan job to read done before the next step

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Meditor/e2e/space-suggestions.spec.ts | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/editor/e2e/space-suggestions.spec.ts b/editor/e2e/space-suggestions.spec.ts @@ -27,11 +27,18 @@ async function seed(): Promise<string> { async function scan(page: import("@playwright/test").Page): Promise<void> { const before = await stat(resolvePath(RESULT)).then((s) => s.mtimeMs, () => 0); - await page.getByRole("button", { name: "Refresh" }).click(); + await page.getByRole("region", { name: "space scan" }).getByRole("button", { name: "Refresh" }).click(); await expect .poll(async () => stat(resolvePath(RESULT)).then((s) => s.mtimeMs, () => 0), { timeout: 60_000 }) .toBeGreaterThan(before); - await page.reload(); + // The file lands before the job's record says done: reload until the page + // offers Refresh again rather than naming a running scan. + await expect + .poll(async () => { + await page.reload(); + return page.getByLabel("space scan running").count(); + }, { timeout: 30_000 }) + .toBe(0); } test("free up space: a scan, the disks, caption compression first, an eviction through its writer", async ({ page }) => {