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
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user