Skip to content

bug(platform): version changes name test fields by raw keys ("mocks", "expect.output") in every language #4829

Closed

Description

@yannickmonney

Problem

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:

  • Summary line:
    • en: "mocks and expect.output changed"
    • de: "mocks und expect.output geändert"
    • fr: "mocks et expect.output modifiés"
  • Row labels and screen-reader names: "description", "failures", "expect.outputIncludes", "expect.effects", "expect.nodes", "expect.failure".

Cause (main aec031867, 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

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 30, 2026
    45b0258
  3. added a commit that references this issue on Oct 30, 2026
    d4ddec7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions