Repository navigation
feat(platform): set a test up through a form - #4812
Merged
Merged
Conversation
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.
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
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
Docs and manual
automation-test-setup).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 onmaintoo (turn_budget.tschanged 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/uiunit (4,094) and browser (101),services/docs(709) andservices/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.