You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): version changes name test fields by raw keys ("mocks", "expect.output") in every language #4829
When two versions' tests differ, the compare page's Changes view and the editor's Save review (Review changes) name the changed test fields by their internal keys in every language:
Cause (mainaec031867, paths under services/platform/):
Where the keys come from: the diff engine splits a test into fields named after its keys: description, mocks, failures and expect.<part> (testFields, lib/engine/core/diff/automation.ts:697-711).
How they become labels:version-changes.tsx:100 (fieldName(t, change.field)) and the summary line's fieldList (:399-417, lib/version-changes.ts:36-48) both label them through fieldName (app/features/automations/lib/issue-text.ts:215-220). fieldName looks up automations:editor.fields.<field> with the raw field as defaultValue.
Why the lookup fails:editor.fields holds node fields (input, output, prompt and so on) but no description, mocks, failures or expect, so the raw key is shown.
The translations already exist under automations:tests.fields: Description, Simulated outputs (mocks), Simulated failures (failures), Output (expectOutput), Nodes (expectNodes), Actions (expectActions) and The run must fail (mustFail), in en, de and fr.
Expected
Label test-field changes from tests.fields.* (mapping expect.output to expectOutput and so on). Fall back to a generic "Expectations" rather than a raw key.
Regression: a version-changes test where a test's mocks and expect.output change. It expects "Simulated outputs" and "Output" in en and the de/fr values, and never a raw key.
Severity and owner
Severity: low (UX-CLARITY and LOCALE). It shows on the compare page and in the Save dialog for every test edit other than input.
Found by: Review A (TALE-358), 2026-10-12 04:15 Zurich occurrence. This is static reading, verified against the en catalog. I didn't run it: Review A's stack is BLOCKED.
Activity
fix(platform): name a changed test's fields in words, not by key
fix(platform): name a changed test's fields in words, not by key