Repository navigation
test(platform): prove the testing flow end to end in a browser - #4858
Merged
Merged
Conversation
The design asked for a testing spec beside the versions one and S12 shipped only the second. The spec saves an automation with one test through the app API and walks the editor's Tests dock on a real stack: the saved version's test reads as passed and says when it was checked, Run all checks it by hand, changing the expectation in the test's YAML makes it fail and its Result shows what it expected against what it got, trying the draft shows the unsaved test's run above the canvas, mending the expectation and saving records the new version's tests, and the version deploys. A second flow starts a failed run, saves it as a test from the Runs tab's row menu, finds It succeeded chosen, and sees the test fail until the run is fixed. Each probe is deleted from its list row. Mutation-checked: a dock that stops saying when tests were checked, a result whose "got" side repeats the expectation, and a failed run's test that stops defaulting to It succeeds each fail the spec on the assertion meant for them.
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 testing design asked for
automation-testing.spec.tsbeside the versions spec, and S12 shipped only the versions one. Testing a draft, reading a failed test and saving a run as a test were proved by unit and browser tests of their pieces but not once end to end on a stack. This adds the spec.Flow 1 — runs, breaks and mends a test, tries the draft, saves with its tests and deploys. An automation is saved with one test through the app API (no AI provider). On its editor's Tests dock:
goodbye) against what it got (hello);Flow 2 — a failed run saved as a test. A deployed automation whose step throws is started; once its run row reads Failed, its menu's Save as test… opens the editor on Tests with the dialog for that run, It succeeds chosen (the test fails until the run is fixed); added, Run all fails it.
Every label comes from the catalogs; the ICU messages are read branch by branch from the raw catalog string (
branch(), nothing hand-rolled beyond picking a branch). Each probe is deleted from its list row. The manual reference table names the spec.Verification (local)
vite preview, the way CI runs it, with the other automation specs beside them (two workers).goodbyewas expected); a failed run's test stops defaulting to It succeeds → the second flow fails on the radio. Each change was made in the running tree, the spec run, and the change reverted (git statusclean).tsc, oxlint and the format check on the spec,lint:manual,knip.