From 51101c473ad823a50e6257d113553119c1f41f7f Mon Sep 17 00:00:00 2001 From: Coracle-Bot Date: Tue, 29 Sep 2026 16:57:01 +0000 Subject: [PATCH] Cover the directory card location with US-131 --- e2e/USER_STORIES.md | 2 ++ e2e/specs/people.spec.ts | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/e2e/USER_STORIES.md b/e2e/USER_STORIES.md index e712a943..c2327906 100644 --- a/e2e/USER_STORIES.md +++ b/e2e/USER_STORIES.md @@ -1583,6 +1583,8 @@ Acceptance: avatar, and opens a pin's profile when it is clicked. A map with nobody on it says so. - The directory's search narrows the map as it narrows the list. +- A member's card in the directory shows their location, so a state or a country + is visible where the map cannot pin it. ### US-098 — Browse and create hosted spaces diff --git a/e2e/specs/people.spec.ts b/e2e/specs/people.spec.ts index 7c6c978b..a8a4b8a7 100644 --- a/e2e/specs/people.spec.ts +++ b/e2e/specs/people.spec.ts @@ -752,9 +752,13 @@ test("US-131 say where you are and find members on a map", async ({seed, as}) => expect(JSON.parse(republished[1].content).location).toBe("Oregon, United States") expect(republished[1].tags.map(tag => tag[0])).not.toContain("g") - // The map is offered whether or not anyone is on it, so an empty one says so. await page.goto(`${spacePath(url)}/directory`) await page.getByPlaceholder("Search people or roles...").fill("Anders") + + // A state is the member card's to show, since the map cannot. + await expect(pageContent(page).getByText("Oregon, United States")).toBeVisible() + + // The map is offered whether or not anyone is on it, so an empty one says so. await page.getByRole("button", {name: "Map"}).click() await expect(pageContent(page).getByText("No locations found.")).toBeVisible()