You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "liuxiaocs7 (via GitHub)" <gi...@apache.org> on 2026/08/26 06:43:35 UTC

[PR] test(desktop): cover sidenav column geometry and resize-handle drag [maka]

liuxiaocs7 opened a new pull request, #3874:
URL: https://github.com/apache/maka/pull/3874

   Fixes #3834.
   
   `apps/desktop/src/renderer/styles/shell-layout.css` cited `e2e/sidebar-geometry.spec.ts` as the lock for the `.maka-sidenav-motion` definite-height invariant, but that file never existed. The resize handle's two workaround rules — its `top: var(--h-titlebar)` placement (`shell-layout.css`) and the `hitAreaOffsetX` `transform: none !important` fix (`sidebar.css`) — had no e2e coverage at all. A regression in either produced a column that looked correct but could not be dragged, and CI stayed green.
   
   ## What this adds
   
   `apps/desktop/e2e/sidebar-geometry.spec.ts`, two tests on the existing `projectSidebarWindow` fixture (shell booted expanded, 60-session list, shown window):
   
   - **footer stays inside the window under an overflowing list** — asserts the list genuinely overflows, then that `.maka-sidenav-motion` and `.maka-session-panel-footer` bottoms stay within `window.innerHeight`. Locks `height: 100%` on `.maka-sidenav-motion`.
   - **resize handle drag from its vertical centre changes the column width** — grabs `[data-testid="astryx-sidenav-resize-handle"]` at its vertical centre (the exact point the `hitAreaOffsetX` bug leaves ungrabbable), drags both directions, and asserts the width tracks. Locks `sidebar.css`'s `transform: none !important` grab-zone fix and the handle's `top` placement.
   
   The two workaround comments now point at the coverage that guards them; the geometry comment's cited path exists.
   
   ## Verified to fail loudly
   
   Each test was run with its rule temporarily removed and rebuilt:
   
   - drop `height: 100%` → wrapper bottom `2358` vs window `821` → **Test A red**
   - drop `transform: none !important` → centre grab no-ops, `data-resizing` never sets, width stays flat → **Test B red**
   
   Restored, both green: `npx playwright test e2e/sidebar-geometry.spec.ts` → **2 passed**. Biome lint clean; ASF header present.
   
   ## Scope
   
   Tests + comments only — no behavior/DOM changes to the shell, `SideNav`, or width logic, and no new fixture scenario (reuses `projectSidebarWindow`). The "Astryx 0.2.0" version note in the workaround comment is left untouched: the workaround is still load-bearing (Test B proves it), and this PR doesn't verify whether a newer Astryx has fixed the underlying bug.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] test(desktop): cover sidenav column geometry and resize-handle drag [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #3874:
URL: https://github.com/apache/maka/pull/3874


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org