From 5917284f24821a7511eea77e0ac4ea5bcba37fdd Mon Sep 17 00:00:00 2001 From: LucaP Date: Sat, 10 Oct 2026 19:19:43 +0300 Subject: [PATCH] test: read reading-panel opacity from the chapter body that now paints it --- tests/browser/scene-controls.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/browser/scene-controls.spec.ts b/tests/browser/scene-controls.spec.ts index 98cddd3..1f4f0ba 100644 --- a/tests/browser/scene-controls.spec.ts +++ b/tests/browser/scene-controls.spec.ts @@ -106,7 +106,9 @@ test("keeps a scrolled content panel in a geometry-safe paint layer above the wo const layers = await page.evaluate(() => { const world = document.querySelector(".journey-world"); const main = document.querySelector(".portfolio-main"); - const panel = document.querySelector("#profile"); + // The reading panel is painted by the chapter body; the opener heading + // sits above it on the world with its own halo. + const panel = document.querySelector("#profile > .chapter-body"); const heading = document.querySelector("#profile-heading"); if (!world || !main || !panel || !heading) throw new Error("Missing scrolled panel structure");