test(dashboard): update gm-mobile + mailbox-divider CSS regression assertions
- GitManagerModal mobile tab strip is now icon-only one-row: assert non-shrink via flex:0 0 auto + width:auto (was min-height for the old icon+label layout). - MailboxView split-pane divider now mirrors the Chat divider: handle width var(--space-sm) + transparent background, ::before line var(--space-xs) (was --space-xs handle + color-mix bg). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3417,8 +3417,9 @@ describe("GitManagerModal", () => {
|
||||
|
||||
const navItemRules = getRuleBlocks(mobile768, ".gm-nav-item");
|
||||
expect(navItemRules).toHaveLength(1);
|
||||
// Mobile tabs are compact ICON-ONLY in one scrolling row: non-shrinking via flex:0 0 auto + intrinsic width:auto (overrides the base .gm-nav-item width:100% that otherwise made one tab fill the row).
|
||||
expect(navItemRules[0]).toContain("flex: 0 0 auto;");
|
||||
expect(navItemRules[0]).toContain("min-height: calc(var(--space-xl) + var(--space-sm));");
|
||||
expect(navItemRules[0]).toContain("width: auto;");
|
||||
|
||||
expect(mobile720).not.toContain(".gm-sidebar");
|
||||
expect(mobile720).not.toContain(".gm-nav-item");
|
||||
|
||||
@@ -1884,13 +1884,14 @@ describe("MailboxView", () => {
|
||||
const resizeHandleBlockMatch = css.match(/\.mailbox-view\s+\.mailbox-split-resize-handle\s*\{([^}]*)\}/);
|
||||
expect(resizeHandleBlockMatch).toBeTruthy();
|
||||
const resizeHandleBlock = resizeHandleBlockMatch![1];
|
||||
expect(resizeHandleBlock).toContain("width: var(--space-xs);");
|
||||
// FNXC:Mailbox 2026-06-22-18:20: handle mirrors the Chat sidebar divider — hit area var(--space-sm), transparent until hover, centered var(--space-xs) line.
|
||||
expect(resizeHandleBlock).toContain("width: var(--space-sm);");
|
||||
expect(resizeHandleBlock).toContain("cursor: col-resize;");
|
||||
expect(resizeHandleBlock).toContain("background: color-mix(in srgb, var(--border) 70%, transparent);");
|
||||
expect(resizeHandleBlock).toContain("background: transparent;");
|
||||
|
||||
const resizeHandleTargetBlockMatch = css.match(/\.mailbox-view\s+\.mailbox-split-resize-handle::before\s*\{([^}]*)\}/);
|
||||
expect(resizeHandleTargetBlockMatch).toBeTruthy();
|
||||
expect(resizeHandleTargetBlockMatch![1]).toContain("width: var(--space-sm);");
|
||||
expect(resizeHandleTargetBlockMatch![1]).toContain("width: var(--space-xs);");
|
||||
expect(css).toMatch(/\.mailbox-view\s+\.mailbox-split-resize-handle:hover::before,\s*\n\.mailbox-view\s+\.mailbox-split-resize-handle:active::before\s*\{[^}]*background:\s*color-mix\(in srgb,\s*var\(--todo\)\s*35%,\s*transparent\);[^}]*\}/);
|
||||
|
||||
const splitEmptyBlockMatch = css.match(/\.mailbox-view\s+\.mailbox-split-empty\s*\{([^}]*)\}/);
|
||||
|
||||
Reference in New Issue
Block a user