fix: mention keyboard map nudging
This commit is contained in:
parent
c8a29d20a8
commit
0701a62ff1
@ -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.";
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user