Colour tile tests: the disc on the shared widgets panel for every look's screenshot, and a key's release sending rgb and hex

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-14 23:59:24 +02:00
co-authored by Claude Opus 5.5
parent 810290e523
commit 9f7b552885
2 changed files with 82 additions and 9 deletions
+11 -1
View File
@@ -24,7 +24,7 @@ const lockedName = `${flowName}_locked`
const w = (name: string) => `${flowName}.${name}`
/** Every tile the dashboard carries, including the deliberately unbound one. */
const TILES = 11
const TILES = 12
test.use({ storageState: "playwright/.auth/user.json" })
@@ -59,6 +59,7 @@ test.beforeAll(async ({ browser }) => {
{ name: "lamp", dtype: "bool" },
{ name: "setpoint", dtype: "float" },
{ name: "idle", dtype: "float" },
{ name: "tint", dtype: "list", item: "float" },
],
},
],
@@ -78,6 +79,8 @@ test.beforeAll(async ({ browser }) => {
await publish(page, w("condition"), "sun")
await publish(page, w("setpoint"), 21.5)
await publish(page, w("idle"), 0)
// Amber, so the disc's handle and shade have something to show.
await publish(page, w("tint"), [38, 72, 80])
await publish(page, w("days"), [
{ label: "Mon", icon: "sun", value: "21°" },
{ label: "Tue", icon: "cloudy", value: "18°" },
@@ -214,6 +217,13 @@ test.beforeAll(async ({ browser }) => {
layout: { lg: { x: 6, y: 4, w: 6, h: 3 } },
config: { series: [{ message: w("level"), dtype: "float" }] },
},
{
id: "tint",
type: "color",
title: "Tint",
layout: { lg: { x: 6, y: 7, w: 3, h: 3 } },
config: { target: w("tint"), dtype: "list", format: "hsv" },
},
]
const draft = await (
await api(page, `/dashboards/${dashboardName}`, {