fix: remove default location card label
This commit is contained in:
parent
bafbc0fdac
commit
fb35b2b695
@ -134,9 +134,6 @@ export default function ManageStores() {
|
|||||||
{location.address ? (
|
{location.address ? (
|
||||||
<p className="store-location">{location.address}</p>
|
<p className="store-location">{location.address}</p>
|
||||||
) : null}
|
) : null}
|
||||||
{location.is_default ? (
|
|
||||||
<p className="store-location">Default location</p>
|
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="store-location-controls">
|
<div className="store-location-controls">
|
||||||
|
|||||||
@ -122,7 +122,7 @@ test("manage stores opens a modal to edit and delete household store items", asy
|
|||||||
const storeCard = page.locator(".store-card").filter({ hasText: "Costco" });
|
const storeCard = page.locator(".store-card").filter({ hasText: "Costco" });
|
||||||
await expect(storeCard).toBeVisible();
|
await expect(storeCard).toBeVisible();
|
||||||
await expect(storeCard.getByText("Costco", { exact: true })).toHaveCount(1);
|
await expect(storeCard.getByText("Costco", { exact: true })).toHaveCount(1);
|
||||||
await expect(storeCard.getByText("Default location")).toBeVisible();
|
await expect(storeCard.getByText("Default location")).toHaveCount(0);
|
||||||
await expect(storeCard.getByText("Default shopping location")).toHaveCount(0);
|
await expect(storeCard.getByText("Default shopping location")).toHaveCount(0);
|
||||||
await expect(storeCard.getByRole("button", { name: "Manage Items (2)" })).toBeVisible();
|
await expect(storeCard.getByRole("button", { name: "Manage Items (2)" })).toBeVisible();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user