Merge branch 'main' of git.stroblme.de:Fluksio/app
Docs / docs (push) Successful in 21s
Playwright Tests / test-playwright (1, 2) (push) Failing after 2m10s
Playwright Tests / test-playwright (2, 2) (push) Failing after 11s
pre-commit / pre-commit (push) Failing after 1m56s
Test Backend / test-backend (push) Failing after 2m35s
Compose Smoke Test / test-compose (push) Failing after 11s
Playwright Tests / merge-reports (push) Failing after 2m19s

# Conflicts:
#	frontend/src/client/sdk.gen.ts
This commit is contained in:
2026-09-07 08:41:45 +02:00
9 changed files with 200 additions and 8 deletions
+20
View File
@@ -151,6 +151,20 @@ test.beforeAll(async ({ browser }) => {
],
},
},
{
id: "scenes",
type: "buttons",
title: "Scenes",
layout: { lg: { x: 9, y: 0, w: 3, h: 2 } },
config: {
target: w("mode"),
dtype: "str",
buttons: [
{ label: "Night", value: "night" },
{ label: "Away", value: "away" },
],
},
},
{
id: "lamp",
type: "switch",
@@ -488,6 +502,12 @@ test("a control reads back what it published", async ({ page }) => {
await boost.click()
await expect(boost).toHaveAttribute("aria-pressed", "true")
// A grid draws one press per entry and publishes the value of the one
// pressed — nothing is read back, so the segmented control beside it, bound
// to the same message, is what says the publish landed.
await page.getByRole("button", { name: "Night" }).click()
await expect(boost).toHaveAttribute("aria-pressed", "false")
// The latching button names its state; two presses are a round trip.
const lamp = page.getByRole("button", { name: "Lamp" })
await expect(lamp).toHaveText("Off")