|
96 | 96 | // `dataset_binding` description, the `drilldown` hint and the `runtimeFilter` |
97 | 97 | // hint — and each row says its verdicts were taken against the old English.) |
98 | 98 | // |
| 99 | +// (#36838 gave the top-level `dataset` / `values` / `rows` / `columns` rows the |
| 100 | +// blocks grid's titles — Data Source / Metrics / Group By / Group Columns By — |
| 101 | +// where they read the humanized keys. Each label leaf already existed, so the |
| 102 | +// population, the field leaves and the inward negatives did not move, and none |
| 103 | +// of the six decided rows moved. The "Dataset" twin below now points at the |
| 104 | +// English the heading was rendered from on the dataset type's own label.) |
| 105 | +// |
99 | 106 | // ## ⚠️⚠️ The phantom-translation trap — and why this family is the SHARP case |
100 | 107 | // |
101 | 108 | // `reportForm` declares NO label on `drilldown` and NO label on `runtimeFilter` |
@@ -788,7 +795,13 @@ describe('#19403 round 9 — one schema key, one rendering', () => { |
788 | 795 | // Round 5's discipline, from the other side: a row that names a twin has to |
789 | 796 | // be able to point at it. |
790 | 797 | const en = enMetadataForms as Record<string, any>; |
791 | | - expect(en.report?.fields?.dataset?.label).toBe('Dataset'); |
| 798 | + // #36838 renamed the report row's English to "Data Source", the blocks |
| 799 | + // grid's term; its translated values (asserted below) did not move. The |
| 800 | + // English word "Dataset" this heading was rendered from still has an |
| 801 | + // authored home with the SAME three renderings: the metadata type's own |
| 802 | + // label, asserted below as well. |
| 803 | + expect(en.report?.fields?.dataset?.label).toBe('Data Source'); |
| 804 | + expect(en.dataset?.label).toBe('Dataset'); |
792 | 805 | expect(en.dataset?.sections?.measures?.label).toBe('Measures'); |
793 | 806 | expect(en.dataset?.sections?.dimensions?.label).toBe('Dimensions'); |
794 | 807 | expect(String(en.dataset?.fields?.filter?.helpText)).toContain('ANDed into every query'); |
@@ -817,6 +830,7 @@ describe('#19403 round 9 — one schema key, one rendering', () => { |
817 | 830 | for (const [locale, forms] of TRANSLATED_LOCALES) { |
818 | 831 | const want = expected[locale]; |
819 | 832 | expect(String(forms.report?.fields?.dataset?.label), `${locale} the Dataset twin moved`).toBe(want.dataset); |
| 833 | + expect(String(forms.dataset?.label), `${locale} the dataset type label no longer reads the Dataset twin`).toBe(want.dataset); |
820 | 834 | expect(String(forms.dataset?.sections?.measures?.label), `${locale} the Measures twin moved`).toBe(want.measures); |
821 | 835 | expect(String(forms.dataset?.sections?.dimensions?.label), `${locale} the Dimensions twin moved`).toBe( |
822 | 836 | want.dimensions, |
|
0 commit comments