⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 626: Fix Stale Hardcoded Count Assertions in E2E Tests

完了 ← タスク一覧

Task 626: Fix Stale Hardcoded Count Assertions in E2E Tests

Status: DONE

Problem

Several E2E tests use exact hardcoded counts (e.g., toBe(15) for ADR rows, toBe(13) for ideas rows) that will break as soon as content is added. These are maintenance traps that cause false test failures unrelated to actual bugs.

Solution

Replace fragile exact-count assertions with threshold-based assertions (toBeGreaterThanOrEqual) where the exact count is not semantically meaningful. Keep exact counts only where they validate specific structural invariants (like 5 episode tabs).

Files to Modify