Skip to content

Commit 436f05f

Browse files
committed
test: count the field form's percentDisplay row in the catalog and predicate censuses
The platform-objects translated-label census (695 -> 696) and the lint shipped-predicate census (89 -> 90, literal comparisons 64 -> 65) pin the metadata form rows; the new percent-gated row is one more of each. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvqwtTGSkCm75Nci1s
1 parent 988c264 commit 436f05f

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎packages/lint/src/validate-predicate-path-refs.test.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,10 @@ describe('#7010 corpus — shipped METADATA_FORM_REGISTRY', () => {
692692
// `data.type != 'joined'` (`ReportSchema` refuses `dateRange` and
693693
// `exportOptions` on a joined report). It reaches the literal-comparison
694694
// census below.
695-
expect(predicates, 'the shipped metadata forms carry no predicates at all').toBe(89);
695+
// It is 90 today, an ADDITION of ONE: #28255 offered the field form's
696+
// `percentDisplay` row once the console's percent face reads it, gated on
697+
// `data.type == 'percent'`. It reaches the literal-comparison census below.
698+
expect(predicates, 'the shipped metadata forms carry no predicates at all').toBe(90);
696699

697700
const findings = validatePredicatePathRefs(corrupted);
698701
expect(findings).toHaveLength(predicates);
@@ -811,7 +814,9 @@ describe('#7010 corpus — shipped METADATA_FORM_REGISTRY', () => {
811814
// so its two `==` literal comparisons left the census.
812815
// It is 64 today: #26548's report "Period & export" section is gated on
813816
// `data.type != 'joined'`, a single-quoted literal comparison.
814-
expect(comparisons, 'no shipped predicate carries an `==`/`!=` literal comparison').toBe(64);
817+
// It is 65 today: #28255's `field :: percentDisplay` row is gated on
818+
// `data.type == 'percent'`, a single-quoted literal comparison.
819+
expect(comparisons, 'no shipped predicate carries an `==`/`!=` literal comparison').toBe(65);
815820

816821
const rhsFindings = validatePredicatePathRefs(corrupted)
817822
.filter((f) => f.rule === PREDICATE_RHS_PATH_SHAPED);

‎packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,10 @@ describe('#19403 round 10 — the verdicts, on the live bundles', () => {
12421242
// `dead`) — one row label fewer, in all three locales.
12431243
// 695 since #27184: the field form's `currencyConfig.currencyField` row
12441244
// (record currency mode) — one row label, authored in all three locales.
1245-
expect(translated.length, `${locale} positive control`).toBe(695);
1245+
// 696 since #28255: the field form's `percentDisplay` row (a percent
1246+
// field's read-only face, bar or plain) — one row label, authored in all
1247+
// three locales.
1248+
expect(translated.length, `${locale} positive control`).toBe(696);
12461249
}
12471250
// ⭐ DARK — the blindness, executable. On a synthetic two-locale catalog the
12481251
// all-three predicate returns 0 while the per-locale one returns 1, so the

0 commit comments

Comments
 (0)