Skip to content

refactor(test): share overflowing detail model fixture - #330

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/overflow-detail-fixture
Nov 5, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/overflow-detail-fixture

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Five viewport regression tests duplicate the same overflowing detail model setup.

User Impact

No production behavior changes.

Why This Change Was Made

Construct a fresh model in one private test helper. Each test retains its terminal sizes, focus changes, updates, synchronization order, overflow preconditions, and assertions. The keyboard regression still populates the viewport through real window and key messages. This removes 75 test lines.

Evidence

  • All five affected viewport regression tests pass with GOWORK=off.
  • CLI package vet and formatting checks pass.
  • Independent P0–P3 review: scoped-clean.

@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 5, 2026 00:49
@vincentkoc
vincentkoc merged commit fce503e into main Nov 5, 2026
14 checks passed
@vincentkoc
vincentkoc deleted the refactor/overflow-detail-fixture branch November 5, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant