Commit 716c6c8
test: tighten progressive-update assertions to count markers
The all-pending and partial state checks used substring presence,
which would also accept states with one pending plus one failed
or skipped row. The current setup only ever produces successes
and pendings so the looser checks happened to be equivalent in
practice — but readers couldn't tell that without inspecting
which statuses the orchestrator can emit.
Count hourglass and checkmark markers explicitly: the all-pending
state has exactly two hourglasses and zero checkmarks, the partial
state has exactly one of each. The contract is now visible at the
assertion site without requiring the reader to reason about which
other statuses might appear.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a5c7207 commit 716c6c8
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
719 | 722 | | |
720 | 723 | | |
721 | | - | |
| 724 | + | |
722 | 725 | | |
723 | 726 | | |
724 | 727 | | |
725 | 728 | | |
726 | | - | |
| 729 | + | |
727 | 730 | | |
728 | 731 | | |
729 | | - | |
730 | | - | |
| 732 | + | |
| 733 | + | |
731 | 734 | | |
732 | 735 | | |
733 | 736 | | |
| |||
0 commit comments