Colour tile tests: the disc on the shared widgets panel for every look's screenshot, and a key's release sending rgb and hex
This commit is contained in:
@@ -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}`, {
|
||||
|
||||
Reference in New Issue
Block a user