Skip to content

feat(platform): set a test up through a form - #4812

Merged
yannickmonney merged 2 commits into
mainfrom
feat/automation-test-setup
Oct 11, 2026
Merged

yannickmonney merged 2 commits into
mainfrom
feat/automation-test-setup

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

A test's Setup becomes a form (P5 S10b1). The YAML stays one switch away, for anything the form has no control for. Builds on the Tests panel of #4811.

The Setup form

  • Name, Description and the Input the run receives as JSON. Keys the run input's schema declares are offered as you type one, and Add the missing fields fills each field the schema requires with a placeholder.
  • Simulated outputs and Simulated failures: a picker adds a step (code steps last, since a test usually checks your code), each with its own JSON field or message and a Remove. A step that runs once per item asks for one entry per item. Use the last run's output fills a step's output from the run laid over the canvas.
  • Expectations: the output compared with Equals, Includes or Not checked, switching without losing the value, and Use the last result's output. Node states (runs, is skipped, fails and the run goes on). Actions that must or must not happen, from a step or any, with their input compared or not. The run must fail, at a step and with a message, which drops the output expectation it cannot have.
  • Every control writes the one field it shows into the raw test, so keys the form has no control for, and keys this build doesn't know, stay as written. Each control registers its place: Problems' "go to" opens the form on the control for the place, or the YAML when the form has none (an unknown key, the test as a whole).
  • Edit as YAML switches Setup to the test's YAML, as before.

Docs and manual

  • The testing page (EN/DE/FR) describes the form and keeps the YAML reference, with a new screenshot of the Setup form from the pipeline (automation-test-setup).
  • Manual: AUTO-F170, AUTO-F171, AUTO-A26, and a reference row for the automated coverage.

Verification (local)

  • Platform tsc; oxlint on the changed files and the automations, routes and engine trees.

  • The whole server and PII projects: 87,742 of 87,743 pass. The one red, tests/guards/automation-legacy-agent-flow.test.ts, is red on main too (turn_budget.ts changed in 6d1e153 without its pinned hash); this branch touches neither file.

  • The whole platform UI suite: 7,520 of 7,520. Automations browser tests: 93 of 93.

  • @tale/ui unit (4,094) and browser (101), services/docs (709) and services/ui-docs (106) tests, lint:links, lint:manual, knip, format.

  • New tests: the form's read and write helpers and which places it owns (test-form.test.ts, 20), the form in the inspector (editing a field keeps unknown keys, removing a simulated step, switching the comparison, a run that must fail), and Problems' go to a test's name (the form) and to a key the form doesn't show (the YAML).

  • Live in Chromium on a local stack (Order discounts): the big order's test opens on the form with its name, input and Includes; the picker adds Discount as a simulated step; Run all shows Simulates 1 node on the row; Edit as YAML shows the same test with its mocks. No console errors.

A test's Setup is a form: name, description and input (with the run input's keys offered and the missing ones filled), simulated outputs and failures picked per step, and the expectations — the output compared exactly or by what it lists, node states, actions that must or must not happen, and a run that must fail. Each control writes only its own field into the raw test, so every key it has no control for stays as written, and registers its place so Problems go to it; a place it has no control for opens Edit as YAML.
The testing page describes the Setup form and keeps the YAML reference, with a screenshot of the big order's test from the pipeline.
@yannickmonney
yannickmonney merged commit 7dd41db into main Oct 11, 2026
@yannickmonney
yannickmonney deleted the feat/automation-test-setup branch October 11, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant