Repository navigation
feat(platform): save a run as a test - #4818
Merged
Merged
Conversation
A dialog makes a test from a run with the shared builder: a name, what it expects by how the run ended, the steps that answer as they did in the run (code steps stay off), whether it expects the same actions, and what to know first (values withheld as secrets, a live run's calls, sizes). The test joins the draft and opens on Setup. It opens from Add test's From a run, from a run page's Save as test (through the editor's saveRun parameter) and from a try's strip; the test is made in the browser from the run's detail.
The testing page explains where a run becomes a test and what the dialog asks, with a screenshot of the seeded live run of Answer launch questions saved as a test.
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
Save a run as a test (P5 S10c3). Builds on #4815 and #4816.
testFromRun,simulationCandidates,expectChoices,defaultExpect), which was unused until now:?saveRun=<id>; the editor reads the run, opens the dialog and drops the parameter.Docs and manual
automation-save-as-test: the seeded live run of Answer launch questions, its search simulated). From a run is named in the add menu paragraph.AUTO-F177, 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,724 of 87,724.
The whole platform UI suite: 7,560 of 7,560. Automations browser tests: 95 of 95.
@tale/uiunit (4,095) and browser (223),services/docs(709) andservices/ui-docs(106) tests, i18n (616),lint:links,lint:manual,knip.New tests:
save-as-test.test.ts);save-as-test-dialog.test.tsx);saveRunopened once and forgotten, and the try strip's Save as test;run-actions.test.tsx).Live in Chromium on a local stack (Order discounts), no console errors:
?panel=tests) with the dialog.