test: read reading-panel opacity from the chapter body that now paints it
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user