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");