Archilyzer · Source

archilyzer

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

commit e1417c926a0d498110dd93a7b77cb6f2972e5f2d
parent 3e2a8771a28de9f9002a91edfe2f5dc280711d34
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 28 Oct 2026 23:49:50 -0400

e2e: changelog-pages asserts on the heading in view and selects a digit-led id by attribute

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

Diffstat:
Meditor/e2e/changelog-pages.spec.ts | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/editor/e2e/changelog-pages.spec.ts b/editor/e2e/changelog-pages.spec.ts @@ -109,12 +109,13 @@ test("a link to an older release's anchor lands on the page that holds it", asyn // By the release's own id… await page.goto("/changelog#v9.9.10"); await expect(page).toHaveURL(/\/changelog\?page=3#v9\.9\.10$/); - await expect(page.locator("#v9\\.9\\.10")).toBeInViewport(); + // (The id is an empty span inside the heading; the heading is what shows.) + await expect(page.locator("h2:has(#v9\\.9\\.10)")).toBeInViewport(); // …and by the date id a link copied before this page had pages carries. await page.goto("/changelog#2024-01-01"); await expect(page).toHaveURL(/\/changelog\?page=3#2024-01-01$/); - await expect(page.locator("#2024-01-01")).toBeInViewport(); + await expect(page.locator('[id="2024-01-01"]')).toBeInViewport(); // An anchor on page 1 stays on page 1. await page.goto("/changelog#unreleased");