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 () => {