From ef28fce6ed26f206750ef2938fb0f6a09b274b3a Mon Sep 17 00:00:00 2001 From: Lily Shen <115414357+lilyshen0722@users.noreply.github.com> Date: Sun, 1 Nov 2026 07:05:41 -0800 Subject: [PATCH] test(v2): pin the fix-command row's flex and wrap rules Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015AKgpMD6Qh13f7fj6mbGT3 --- frontend/src/v2/__tests__/v2-layout-invariants.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/v2/__tests__/v2-layout-invariants.test.ts b/frontend/src/v2/__tests__/v2-layout-invariants.test.ts index c4bbeadc7..a7c6aac0c 100644 --- a/frontend/src/v2/__tests__/v2-layout-invariants.test.ts +++ b/frontend/src/v2/__tests__/v2-layout-invariants.test.ts @@ -657,6 +657,13 @@ describe('v2 layout invariants (CSS rule presence)', () => { const status = ruleBody(v2, '.v2-chat__agent-room-status'); expect(status).toContain('margin: 6px 18px 0'); expect(status).toContain('flex: none'); + // The fix command shrinks and wraps inside its row rather than pushing the + // copy key out of the pane. + expect(ruleBody(v2, '.v2-chat__agent-room-command')).toContain('display: flex'); + const commandCode = ruleBody(v2, '.v2-chat__agent-room-command code'); + expect(commandCode).toContain('flex: 1'); + expect(commandCode).toContain('min-width: 0'); + expect(commandCode).toContain('overflow-wrap: anywhere'); const waiting = ruleBody(v2, '.v2-chat__agent-room-status--wait'); expect(waiting).toContain('var(--v2-font-mono)'); // The waiting dot is ink, never the success green (d215 frame).