test: read reading-panel opacity from the chapter body that now paints it

This commit is contained in:
2026-10-10 19:19:43 +03:00
parent 8008edb855
commit 5917284f24

View File

@@ -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<HTMLElement>(".journey-world");
const main = document.querySelector<HTMLElement>(".portfolio-main");
const panel = document.querySelector<HTMLElement>("#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<HTMLElement>("#profile > .chapter-body");
const heading = document.querySelector<HTMLElement>("#profile-heading");
if (!world || !main || !panel || !heading)
throw new Error("Missing scrolled panel structure");