From c203b0a597d79e4fdc7728776255d4894319b0b6 Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 17 Nov 2026 09:27:49 +0100 Subject: [PATCH] test(places): look for the hidden tab's formatting buttons too --- client/src/components/Planner/PlaceFormModal.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');