The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): cover zoom reassert on Windows maximize
Sylvester Kaczmarek16c689468e88
diff --git a/apps/desktop/electron/zoom.test.ts b/apps/desktop/electron/zoom.test.tsindex 20bd5d70fb2..65aba0a25d6 100644--- a/apps/desktop/electron/zoom.test.ts+++ b/apps/desktop/electron/zoom.test.ts@@ -70,7 +70,7 @@ test('extreme percentages clamp to the level bounds', () => {assert.equal(percentToZoomLevel(1_000_000), 9)})-test('installZoomReassertOnWindowEvents wires show, restore, focus, resize, and cross-display moves on macOS and Windows', () => {+test('installZoomReassertOnWindowEvents wires Windows maximize transitions in addition to normal lifecycle events', () => {const handlers = new Map()const win = {@@ -93,9 +93,15 @@ test('installZoomReassertOnWindowEvents wires show, restore, focus, resize, andhandlers.get('show')()handlers.get('restore')()handlers.get('focus')()+ handlers.get('maximize')()+ handlers.get('unmaximize')()handlers.get('resized')()handlers.get('moved')()- assert.equal(calls, 5)+ assert.equal(calls, 7)+})++test('zoomReassertWindowEvents does not add Windows-only maximize events on macOS', () => {+ assert.deepEqual(zoomReassertWindowEvents('darwin'), ['show', 'restore', 'focus', 'resized', 'moved'])})test('isDebouncedReassertEvent debounces focus only on Linux, not Windows/macOS', () => {