Cover the directory card location with US-131

This commit is contained in:
Coracle-Bot 2026-09-29 16:57:01 +00:00
parent c8edff5063
commit 51101c473a
2 changed files with 7 additions and 1 deletions

View file

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

View file

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