Commit cd025d1
committed
test(actor_card): Fix misleading truncation test + add real coverage
The original "renders every property without truncation" test created
15 properties and sat inside the 20-field no-truncation window — the
name implied truncation coverage that wasn't actually being exercised.
- Renamed to "renders all input fields when count is within MAX_INPUT_SCHEMA_TEXT_FIELDS".
- Added a separate test that puts MAX_INPUT_SCHEMA_TEXT_FIELDS + 5 properties through and asserts:
* the last in-window field is rendered
* the first overflow field is NOT rendered
* the " ... (+5 more)" suffix appears
- Dropped the negative regex assertion against `/Input schema \(\d+ of \d+\)/` —
asserted a format the code never produces.
Per review on #737.1 parent e538171 commit cd025d1
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
616 | | - | |
| 617 | + | |
617 | 618 | | |
618 | | - | |
| 619 | + | |
619 | 620 | | |
620 | 621 | | |
621 | 622 | | |
622 | | - | |
623 | | - | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
624 | 637 | | |
625 | 638 | | |
626 | 639 | | |
| |||
0 commit comments