test: keep the day plan sidebar test within its size baseline

This commit is contained in:
Maurice
2026-10-14 12:26:42 +02:00
committed by Maurice
parent 723bfa507b
commit f746c22a83
@@ -1572,10 +1572,8 @@ describe('DayPlanSidebar', () => {
expect(document.querySelector('.note-edit-buttons')).toBeNull() expect(document.querySelector('.note-edit-buttons')).toBeNull()
expect(row.querySelectorAll('[style*="position: absolute"]')).toHaveLength(0) expect(row.querySelectorAll('[style*="position: absolute"]')).toHaveLength(0)
expect(row.querySelectorAll('.reorder-buttons button')).toHaveLength(2) expect(row.querySelectorAll('.reorder-buttons button')).toHaveLength(2)
// Positional, not just by class: the actions sit at the row's right edge, // Positional: the actions close the row, the reorder column right before their "…".
// the reorder column with only the row's "…" after it.
const actions = row.lastElementChild const actions = row.lastElementChild
expect(actions).toHaveClass('dp-note-actions')
expect(actions?.lastElementChild).toHaveAccessibleName('More options') expect(actions?.lastElementChild).toHaveAccessibleName('More options')
expect(actions?.lastElementChild?.previousElementSibling).toHaveClass('reorder-buttons') expect(actions?.lastElementChild?.previousElementSibling).toHaveClass('reorder-buttons')
}) })