From 0701a62ff1da9cdf49b39462dbcceb34d873b11f Mon Sep 17 00:00:00 2001 From: Nico Date: Wed, 3 Jun 2026 19:09:47 -0700 Subject: [PATCH] fix: mention keyboard map nudging --- frontend/src/components/maps/LocationMapBottomSheet.jsx | 2 +- frontend/tests/location-map-manager.spec.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/maps/LocationMapBottomSheet.jsx b/frontend/src/components/maps/LocationMapBottomSheet.jsx index b6b8a6c..8b5982d 100644 --- a/frontend/src/components/maps/LocationMapBottomSheet.jsx +++ b/frontend/src/components/maps/LocationMapBottomSheet.jsx @@ -66,7 +66,7 @@ export default function LocationMapBottomSheet({ ? selectedTitle : "Map Details"; const sheetDescription = selectedObject && editorTool === "edit" - ? "Move, resize, link, or rename this area." + ? "Move, resize, link, rename, or nudge with arrow keys." : editorTool === "edit" ? "Tap an area to select it." : "Drag and zoom without changing objects."; diff --git a/frontend/tests/location-map-manager.spec.ts b/frontend/tests/location-map-manager.spec.ts index a4d6879..83fe247 100644 --- a/frontend/tests/location-map-manager.spec.ts +++ b/frontend/tests/location-map-manager.spec.ts @@ -634,6 +634,7 @@ test("admin nudges selected map areas with arrow keys", async ({ page }) => { await bakeryArea.focus(); await expect(bakeryArea).toBeFocused(); await page.keyboard.press("Enter"); + await expect(page.getByText("Move, resize, link, rename, or nudge with arrow keys.")).toBeVisible(); await expect(page.getByRole("spinbutton", { name: "X" })).toHaveValue("40"); await expect(page.getByRole("spinbutton", { name: "Y" })).toHaveValue("40"); await expect(page.locator(".location-map-status")).toHaveText("Draft");