Merge pull request 'Remove default location card label' (#17) from feature/remove-default-location-label into feature-custom-store-locations

This commit is contained in:
nalalangan 2026-05-31 19:30:07 -09:00
commit d94a169417
2 changed files with 1 additions and 4 deletions

View File

@ -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">

View File

@ -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();