Add store location map manager #20

Open
nalalangan wants to merge 206 commits from feature/location-map-manager into feature/store-selector-modal
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 0701a62ff1 - Show all commits

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