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:
commit
d94a169417
@ -134,9 +134,6 @@ export default function ManageStores() {
|
||||
{location.address ? (
|
||||
<p className="store-location">{location.address}</p>
|
||||
) : null}
|
||||
{location.is_default ? (
|
||||
<p className="store-location">Default location</p>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
<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" });
|
||||
await expect(storeCard).toBeVisible();
|
||||
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.getByRole("button", { name: "Manage Items (2)" })).toBeVisible();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user