From f746c22a830c72f2aa0e7c3a8e667490fe87fee5 Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 14 Oct 2026 12:26:42 +0200 Subject: [PATCH] test: keep the day plan sidebar test within its size baseline --- client/src/components/Planner/DayPlanSidebar.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/components/Planner/DayPlanSidebar.test.tsx b/client/src/components/Planner/DayPlanSidebar.test.tsx index f8f612ac3..1d32c2171 100644 --- a/client/src/components/Planner/DayPlanSidebar.test.tsx +++ b/client/src/components/Planner/DayPlanSidebar.test.tsx @@ -1572,10 +1572,8 @@ describe('DayPlanSidebar', () => { expect(document.querySelector('.note-edit-buttons')).toBeNull() expect(row.querySelectorAll('[style*="position: absolute"]')).toHaveLength(0) expect(row.querySelectorAll('.reorder-buttons button')).toHaveLength(2) - // Positional, not just by class: the actions sit at the row's right edge, - // the reorder column with only the row's "…" after it. + // Positional: the actions close the row, the reorder column right before their "…". const actions = row.lastElementChild - expect(actions).toHaveClass('dp-note-actions') expect(actions?.lastElementChild).toHaveAccessibleName('More options') expect(actions?.lastElementChild?.previousElementSibling).toHaveClass('reorder-buttons') })