diff --git a/e2e/tests/ui.spec.mjs b/e2e/tests/ui.spec.mjs index b1aab89ae..4bf1dcf08 100644 --- a/e2e/tests/ui.spec.mjs +++ b/e2e/tests/ui.spec.mjs @@ -1,6 +1,6 @@ import { test, expect } from "@playwright/test"; -import { createApi, findRunnableEffect, getStack, readEnvelope, uniqueName } from "./helpers.mjs"; +import { createApi, findRunnableEffect, getStack, readEnvelope } from "./helpers.mjs"; test("dashboard loads against the live stack", async ({ page }) => { const stack = getStack(); @@ -38,38 +38,3 @@ test("effects page can activate an effect through the live UI", async ({ page, p } }); -test("displays page can create, edit, and delete a simulator", async ({ page }) => { - const stack = getStack(); - const simulatorName = uniqueName("E2E Simulator"); - const updatedSimulatorName = `${simulatorName} Updated`; - - await page.goto(`${stack.appOrigin}/displays`, { waitUntil: "networkidle" }); - await expect(page.getByRole("heading", { name: "Displays" })).toBeVisible(); - - await page - .locator("li") - .filter({ hasText: stack.seededDisplay.name }) - .getByTitle("Edit simulator") - .click(); - await page.getByRole("button", { name: /delete simulator/i }).click(); - await expect(page.locator("li").filter({ hasText: stack.seededDisplay.name })).toHaveCount(0); - - await page.getByRole("button", { name: /create simulator/i }).click(); - await page.getByLabel("Name").fill(simulatorName); - await page.getByLabel("Width").fill("320"); - await page.getByLabel("Height").fill("320"); - await page.getByRole("button", { name: /create simulator/i }).last().click(); - - await expect(page.getByText(simulatorName)).toBeVisible(); - - await page.locator("li").filter({ hasText: simulatorName }).getByTitle("Edit simulator").click(); - await page.getByLabel("Name").fill(updatedSimulatorName); - await page.getByRole("button", { name: /save simulator/i }).click(); - - await expect(page.getByText(updatedSimulatorName)).toBeVisible(); - - await page.locator("li").filter({ hasText: updatedSimulatorName }).getByTitle("Edit simulator").click(); - await page.getByRole("button", { name: /delete simulator/i }).click(); - - await expect(page.getByText(updatedSimulatorName)).toHaveCount(0); -}); diff --git a/python/src/hypercolor/ws_protocol.py b/python/src/hypercolor/ws_protocol.py index 1f6f0da4c..5fe2a8831 100644 --- a/python/src/hypercolor/ws_protocol.py +++ b/python/src/hypercolor/ws_protocol.py @@ -23,6 +23,7 @@ "device_metrics", "sensors", "display_preview", + "input_events", ) WS_CAPABILITIES: Final = ( "frames", @@ -38,6 +39,7 @@ "device_metrics", "sensors", "display_preview", + "input_events", "commands", "canvas_format_jpeg", )