fix: mention keyboard map nudging

This commit is contained in:
Nico 2026-06-03 19:09:47 -07:00
parent c8a29d20a8
commit 0701a62ff1
2 changed files with 2 additions and 1 deletions

View File

@ -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.";

View File

@ -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");