Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: prove zoom clicks repaint by clearing the clearRect spy after initial paint (#2580)
[._.]/ Adam Eivyc5f6f85b4a57
diff --git a/client/src/components/songs/MidiVisualization.test.jsx b/client/src/components/songs/MidiVisualization.test.jsxindex ac42719c7d..6e5977b25a 100644--- a/client/src/components/songs/MidiVisualization.test.jsx+++ b/client/src/components/songs/MidiVisualization.test.jsx@@ -108,6 +108,10 @@ describe('<MidiVisualization>', () => {it('zoom controls are real labeled buttons', async () => {render(<MidiVisualization url="/uploads/test.mid" />);await screen.findByText(/3 notes · /);+ // Let the initial paint settle, then clear the spy so the assertion proves+ // the zoom interaction *itself* triggers a repaint (not the first paint).+ await waitFor(() => expect(ctx.clearRect).toHaveBeenCalled());+ ctx.clearRect.mockClear();fireEvent.click(screen.getByLabelText('Zoom in'));fireEvent.click(screen.getByLabelText('Zoom out'));fireEvent.click(screen.getByLabelText('Fit to width'));