fix: clarify bought item map layer

This commit is contained in:
Nico 2026-06-04 03:38:57 -07:00
parent e5ccc26a89
commit 2a3e028281
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,7 @@ const DISPLAY_CONTROLS = [
["showPins", "Pins"],
["showMyItems", "Mine"],
["showOtherItems", "Others"],
["showCompleted", "Done"],
["showCompleted", "Bought"],
["showUnmapped", "Unmapped"],
];

View File

@ -1476,6 +1476,8 @@ test("viewer wraps long zone labels and keeps item counts visible", async ({ pag
await page.getByRole("button", { name: "Layers" }).click();
const labelsToggle = page.getByRole("button", { name: "Labels" });
await expect(labelsToggle).toHaveAttribute("aria-pressed", "true");
await expect(page.getByRole("button", { name: "Bought" })).toBeVisible();
await expect(page.getByRole("button", { name: "Done" })).toHaveCount(0);
await labelsToggle.click();
await expect(labelsToggle).toHaveAttribute("aria-pressed", "false");
await expect(page.getByRole("button", { name: "Layers, 1 changed" })).toBeVisible();
@ -2179,7 +2181,7 @@ test("mobile editor uses bottom sheet controls instead of desktop object toolbar
await expect(selectedPrimaryActions.getByRole("button", { name: "Publish" })).toBeVisible();
await expect(selectedSecondaryActions.getByRole("button", { name: "Add Area" })).toBeVisible();
await expect(selectedSecondaryActions.getByRole("button", { name: "Preview Draft" })).toHaveCount(0);
await expect(page.getByRole("button", { name: "Done" })).toHaveCount(0);
await expect(page.getByRole("button", { name: "Bought" })).toHaveCount(0);
const selectedPrimaryBox = await selectedPrimaryActions.boundingBox();
const labelBox = await labelInput.boundingBox();
const firstFieldRowBox = await fieldRows.first().boundingBox();