Archilyzer · Source

archilyzer

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

commit cbb48cd58cdf7aad928134aaf5d6be06d5c638e4
parent 5064aa74230833f1bfea81747b08edef24b3ae78
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 15 Oct 2026 08:12:54 -0400

editor e2e: storage-locations' any-age eviction watches, in the page, the moment the Evict button is armed and whether the preview had answered by then — the check of "still disabled" just after the click raced a preview that answers at once on the small fixture (2 of 5 under load)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/e2e/storage-locations.spec.ts | 20++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/editor/e2e/storage-locations.spec.ts b/editor/e2e/storage-locations.spec.ts @@ -677,14 +677,30 @@ test("evicting at any age needs the tick as well as the preview", async ({ // ARMED BY THE ANSWER, NOT BY THE CLICK. The action returns as soon as the // job is enqueued, so a gate flipped in the trigger would already be open - // here — which is the whole thing it exists to stop. + // here — which is the whole thing it exists to stop. Watched in the page, + // the moment it happens (release 29 D1): a check of "still disabled" just + // after the click raced a preview that answers at once on a small fixture. + await page.evaluate(() => { + const w = window as unknown as { __armedBeforeAnswer?: boolean | null }; + w.__armedBeforeAnswer = null; + const check = () => { + const button = [...document.querySelectorAll("button")].find((b) => b.textContent?.trim() === "Evict fetched windows"); + if (!button || button.disabled || w.__armedBeforeAnswer !== null) return; + const said = document.querySelector('[aria-label="Preview eviction output"]')?.textContent ?? ""; + w.__armedBeforeAnswer = !/Would evict/.test(said); + }; + new MutationObserver(check).observe(document.body, { subtree: true, childList: true, attributes: true, characterData: true }); + }); await page.getByRole("button", { name: "Preview eviction" }).click(); - await expect(evict).toBeDisabled(); await expect(page.getByLabel("Preview eviction output")).toContainText( /Would evict/, { timeout: 60_000 }, ); await expect(evict).toBeEnabled(); + expect( + await page.evaluate(() => (window as unknown as { __armedBeforeAnswer?: boolean | null }).__armedBeforeAnswer), + "the gate opened before the preview's answer", + ).toBe(false); // CHANGING THE AGE DISARMS BOTH. A preview of "any age" says nothing about // what a narrower sweep would take, and vice versa.