Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(collections): hover the +N of a row that has a category beside its labels

Maurice6ee540d5e41f
diff --git a/client/src/components/Collections/CollectionPlaceTags.test.tsx b/client/src/components/Collections/CollectionPlaceTags.test.tsx
index af7141e38..de1a544bf 100644
--- a/client/src/components/Collections/CollectionPlaceTags.test.tsx
+++ b/client/src/components/Collections/CollectionPlaceTags.test.tsx
@@ -69,7 +69,7 @@ describe('CollectionPlaceTags', () => {
it('FE-COMP-COLTAGS-004: the "+N" names the hidden labels in its tooltip', async () => {
layout();
- render(<CollectionPlaceTags place={place(null)} labels={LABELS} />);
+ render(<CollectionPlaceTags place={place()} labels={LABELS} />);
fireEvent.mouseEnter(screen.getByText('+2'));
expect(await screen.findByRole('tooltip')).toHaveTextContent('Heritage, Pair with another stop');
});