diff --git a/client/src/components/Planner/DayPlanSidebar.test.tsx b/client/src/components/Planner/DayPlanSidebar.test.tsx index 8483dcf2e..f8f612ac3 100644 --- a/client/src/components/Planner/DayPlanSidebar.test.tsx +++ b/client/src/components/Planner/DayPlanSidebar.test.tsx @@ -1572,10 +1572,12 @@ 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 reorder column sits at the row's right edge, - // with only the row's "…" after it. - expect(row.lastElementChild).toHaveAccessibleName('More options') - expect(row.lastElementChild?.previousElementSibling).toHaveClass('reorder-buttons') + // Positional, not just by class: the actions sit at the row's right edge, + // the reorder column with only the row's "…" after it. + const actions = row.lastElementChild + expect(actions).toHaveClass('dp-note-actions') + expect(actions?.lastElementChild).toHaveAccessibleName('More options') + expect(actions?.lastElementChild?.previousElementSibling).toHaveClass('reorder-buttons') }) it('FE-PLANNER-DAYPLAN-064e: the keyboard reaches the note and opens it with Enter', () => { diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx index ac3ee34da..515885364 100644 --- a/client/src/components/Planner/DayPlanSidebar.tsx +++ b/client/src/components/Planner/DayPlanSidebar.tsx @@ -2521,10 +2521,10 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP )} {canEditDays &&
-
- - -
+
+ + +
openEditNote(day.id, note) }, { divider: true }, diff --git a/client/src/pages/admin/useAdmin.test.tsx b/client/src/pages/admin/useAdmin.test.tsx index 02fac79d1..a939e9c28 100644 --- a/client/src/pages/admin/useAdmin.test.tsx +++ b/client/src/pages/admin/useAdmin.test.tsx @@ -703,7 +703,10 @@ describe('useAdmin', () => { it('FE-ADMHOOK-036d: the open users tab asks again who is online, without the spinner', async () => { const ticks: Array<() => void> = []; - const spy = vi.spyOn(window, 'setInterval').mockImplementation(((fn: () => void) => { + const realSetInterval = window.setInterval.bind(window); + // Only the hook's 30 s refresh is caught; waitFor keeps its own polling. + const spy = vi.spyOn(window, 'setInterval').mockImplementation(((fn: () => void, ms?: number) => { + if (ms !== 30_000) return realSetInterval(fn, ms); ticks.push(fn); return 0; }) as unknown as typeof window.setInterval);