From e725d4f0a9125761aa171d18372f0ad190b64bc3 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 18 Oct 2026 14:43:55 +0200 Subject: [PATCH] test(packing): sorted A to Z only the category grip stays draggable --- client/src/components/Packing/PackingListPanel.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/Packing/PackingListPanel.test.tsx b/client/src/components/Packing/PackingListPanel.test.tsx index b6922ea22..557f2c8ba 100644 --- a/client/src/components/Packing/PackingListPanel.test.tsx +++ b/client/src/components/Packing/PackingListPanel.test.tsx @@ -271,7 +271,9 @@ describe('PackingListPanel', () => { ]; const { container } = render(); expect(screen.getByRole('button', { name: 'A to Z' })).toHaveAttribute('aria-pressed', 'true'); - expect(container.querySelector('[draggable="true"]')).toBeNull(); + // Only the category grip stays: the order of the categories is not the A to Z of their items. + const draggable = [...container.querySelectorAll('[draggable="true"]')]; + expect(draggable.map((el) => el.getAttribute('aria-label'))).toEqual(['Drag to reorder the category']); }); it('FE-COMP-PACKING-023: inline edit item name via pencil icon calls PUT', async () => {