Compare commits
No commits in common. "d94a1694178944ae914e3f597451ecf676772594" and "bafbc0fdace75baf089a1320057f8e35987ee8f5" have entirely different histories.
d94a169417
...
bafbc0fdac
@ -134,6 +134,9 @@ 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")).toHaveCount(0);
|
await expect(storeCard.getByText("Default location")).toBeVisible();
|
||||||
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