Repository navigation
feat(platform): run and read automation tests in the editor - #4811
Merged
Merged
Conversation
DataDiff takes wording="expectation": before is what was expected and after what came, so each change reads "total: expected 2160, got 2280" or "currency: expected \"CHF\", missing" and the counts read "1 different, 1 missing". It also honours options.mode 'includes', which value-diff already compared by: fields the expectation does not name are no longer listed as unchanged, and a line counts them. EN/DE/FR strings; the guide documents the prop.
A Tests button beside Problems opens the dock under the canvas on a Tests tab: one row per test with its status, first failure in words and duration, results kept per automation and marked changed since once the automation or the test changed, and a version's kept report while nothing ran. Run all and run one work on the draft or on the version shown, where a whole run is recorded as checked by hand; a spent budget or a refused draft is said in words. Add, copy and delete tests; a test opens beside the canvas with its YAML (Setup) and what its latest run found (Result). Problems go to a test's place in its YAML. The address keeps ?panel= and ?test=.
A new page, Test an automation (EN/DE/FR), with a screenshot from the pipeline: a demo order-discounts automation whose big-order test fails. The editor page sends test problems to the Tests panel and points to the page; the concepts page says the deploy gate runs the tests again rather than reading the result recorded at save. The ten editor screenshots whose toolbar gained Tests are captured again, with their alt texts.
This was referenced Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The editor's Tests panel, the first slice of testing in the app (P5 S10a): an author sees the automation's tests under the canvas, runs them on the draft or on the version shown, reads what a failing test found, and writes tests as YAML. It builds on the test reports and bench routes of #4808.
The Tests panel
?panel=and?test=keep the panel and the open test in the address./run-testswith the document) or, without unsaved changes, on the version shown, where a whole run is recorded as checked by hand. A spent bench budget says how many seconds to wait and Run waits; a draft the checks refuse points at Problems; any other failure is said under its title. The announcer says Running N tests… and then the counts.The test inspector
@tale/uiDataDiffgainswording="expectation"(total: expected 2160, got 2280, 1 different, 1 missing), and honoursoptions.mode: 'includes'(@tale/ui/data/value-diffalready compared that way): fields the expectation doesn't name are no longer listed as unchanged, and a line counts them. EN/DE/FR strings; the guide documents the prop.Docs, screenshots, manual
platform/automations/testing, EN/DE/FR) with a screenshot from the pipeline: a new demo, Order discounts, whose big-order test expects 10 % off where the code gives 5 %.AUTO-F164–AUTO-F169,AUTO-B25,AUTO-A25, 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 onmaintoo (turn_budget.tschanged in 6d1e153 without its pinned hash); this branch touches neither file.The whole platform UI suite: 7,497 of 7,497. Automations browser tests: 93 of 93 (the editor's 27 among them).
@tale/ui:tsc, oxlint, the whole unit project (4,094, the i18n orphan-key check included) and the DataDiff and test-results browser tests (101).services/docstests (709: links in every locale, locale parity, images, published addresses),services/ui-docstests (106),lint:links,lint:manual,knip, format.New tests: the controller hook (
use-automation-tests.test.tsx, 9), the pure helpers (lib/automation-tests/*.test.ts), the panel and the inspector (components/automation-tests/*.test.tsx), five editor-level cases (AutomationEditor tests) and the reworked go-to-a-problem case, DataDiff's two wordings and the includes comparison.Two guard findings fixed on the way: the i18n orphan-key scanner skips any
tests/directory, so the new folders are namedautomation-tests/; and a pure module that takes a translate function declares it inline so the scanner credits its keys.Live in Chromium on a local stack (the weekly digest, 1440 px): empty state, Add test (the address gains
?panel=tests&test=0), a test expecting the wrong output fails with text: expected …, got …, editing it turns the row Changed since this result, Run alone passes it, a mistyped key reaches Problems and "go to" selects it in the YAML, Delete empties the list. At 390 px: one sheet at a time, closing a test returns focus to the Tests button. No console errors.