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(places): look for the hidden tab's formatting buttons too

Mauricec203b0a597d7
diff --git a/client/src/components/Planner/PlaceFormModal.test.tsx b/client/src/components/Planner/PlaceFormModal.test.tsx
index 0fdb0a888..db749162a 100644
--- a/client/src/components/Planner/PlaceFormModal.test.tsx
+++ b/client/src/components/Planner/PlaceFormModal.test.tsx
@@ -2684,7 +2684,7 @@ describe('PlaceFormModal in the look of the booking editors', () => {
const bars = screen.getAllByRole('toolbar', { hidden: true });
expect(bars).toHaveLength(2);
for (const bar of bars) {
- for (const button of within(bar).getAllByRole('button')) expect(button).not.toHaveAttribute('title');
+ for (const b of within(bar).getAllByRole('button', { hidden: true })) expect(b).not.toHaveAttribute('title');
}
await user.hover(within(bars[0]).getByRole('button', { name: 'Bold' }));
expect(await screen.findByRole('tooltip')).toHaveTextContent('Bold');