fix: clarify bought item map layer
This commit is contained in:
parent
e5ccc26a89
commit
2a3e028281
@ -14,7 +14,7 @@ const DISPLAY_CONTROLS = [
|
|||||||
["showPins", "Pins"],
|
["showPins", "Pins"],
|
||||||
["showMyItems", "Mine"],
|
["showMyItems", "Mine"],
|
||||||
["showOtherItems", "Others"],
|
["showOtherItems", "Others"],
|
||||||
["showCompleted", "Done"],
|
["showCompleted", "Bought"],
|
||||||
["showUnmapped", "Unmapped"],
|
["showUnmapped", "Unmapped"],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -1476,6 +1476,8 @@ test("viewer wraps long zone labels and keeps item counts visible", async ({ pag
|
|||||||
await page.getByRole("button", { name: "Layers" }).click();
|
await page.getByRole("button", { name: "Layers" }).click();
|
||||||
const labelsToggle = page.getByRole("button", { name: "Labels" });
|
const labelsToggle = page.getByRole("button", { name: "Labels" });
|
||||||
await expect(labelsToggle).toHaveAttribute("aria-pressed", "true");
|
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 labelsToggle.click();
|
||||||
await expect(labelsToggle).toHaveAttribute("aria-pressed", "false");
|
await expect(labelsToggle).toHaveAttribute("aria-pressed", "false");
|
||||||
await expect(page.getByRole("button", { name: "Layers, 1 changed" })).toBeVisible();
|
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(selectedPrimaryActions.getByRole("button", { name: "Publish" })).toBeVisible();
|
||||||
await expect(selectedSecondaryActions.getByRole("button", { name: "Add Area" })).toBeVisible();
|
await expect(selectedSecondaryActions.getByRole("button", { name: "Add Area" })).toBeVisible();
|
||||||
await expect(selectedSecondaryActions.getByRole("button", { name: "Preview Draft" })).toHaveCount(0);
|
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 selectedPrimaryBox = await selectedPrimaryActions.boundingBox();
|
||||||
const labelBox = await labelInput.boundingBox();
|
const labelBox = await labelInput.boundingBox();
|
||||||
const firstFieldRowBox = await fieldRows.first().boundingBox();
|
const firstFieldRowBox = await fieldRows.first().boundingBox();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user