Archilyzer · Source

archilyzer

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

commit afc918a01e571703f50a8f12ee3335a9ea39f5d6
parent 59b7d7bcaf091d80aedbbbebc95568a5c4021f70
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri,  9 Oct 2026 20:46:50 -0400

export: the phone overview spec reads both boxes in one frame (the focused pair smooth-scrolls between two reads)

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

Diffstat:
Mexport/e2e-report/overview.spec.ts | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/export/e2e-report/overview.spec.ts b/export/e2e-report/overview.spec.ts @@ -71,8 +71,14 @@ test("a phone: the overview lies flat, each part stacked over its slide; nothing await page.locator("[data-reader-overlay] [data-view-switch]").getByRole("button", { name: "Overview" }).click(); await expect(page).toHaveURL(`${REPORT}?rv=iso#claim-1`); await expect(overview(page)).toHaveAttribute("data-report-overview", "flat"); - const block = (await page.locator('[data-pair="claim:claim-1"] .rs-ov-block').boundingBox())!; - const card = (await page.locator('[data-pair="claim:claim-1"] .rs-ov-card').boundingBox())!; + // Both boxes in one frame: the overview smooth-scrolls the focused pair to + // the middle, so two separate reads straddle the scroll. + const [block, card] = await page.evaluate(() => + [".rs-ov-block", ".rs-ov-card"].map((s) => { + const r = document.querySelector(`[data-pair="claim:claim-1"] ${s}`)!.getBoundingClientRect(); + return { x: r.x, y: r.y, width: r.width, height: r.height }; + }), + ); expect(card.y).toBeGreaterThanOrEqual(block.y + block.height); expect(card.x + card.width).toBeLessThanOrEqual(375); expect(await page.evaluate(() => document.documentElement.scrollWidth)).toBeLessThanOrEqual(375);