e2e: brand palette guard — fails on blue-family colors in the embedded surfaces

OKLCH-based: any computed color with hue 200–300° and chroma > 0.006 on
/chat or /files/drive (both iframes included) fails the check. Run after
Element/oCIS image bumps; PLAYWRIGHT_PATH can point at an existing
node_modules. Found by the branding panel; threshold from the brand spec.
This commit is contained in:
glass beadian 2026-10-13 19:42:06 +00:00
parent a8c691924d
commit ea1a9bb4e5

View file

@ -121,7 +121,7 @@ async function checkSurface(name, url, waitMs) {
console.log(`checked ${name}`); console.log(`checked ${name}`);
} }
await checkSurface("/chat", `${API.replace("/api", "https://app.occupymedia.cc")}/chat`.replace("https://app.occupymedia.cc", "https://app.occupymedia.cc"), 16000); await checkSurface("/chat", "https://app.occupymedia.cc/chat", 16000);
await checkSurface("/files/drive", "https://app.occupymedia.cc/files/drive", 15000); await checkSurface("/files/drive", "https://app.occupymedia.cc/files/drive", 15000);
if (failures.length > 0) { if (failures.length > 0) {