Skip to content

test(platform): prove the testing flow end to end in a browser - #4858

Merged
yannickmonney merged 1 commit into
mainfrom
test/automation-testing-e2e
Oct 12, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
test/automation-testing-e2e

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

The testing design asked for automation-testing.spec.ts beside 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:

  • the saved version's test reads as passed and says when the version's tests were checked;
  • Run all checks it by hand and the line says so;
  • changing the expectation in the test's YAML makes the test fail, and its Result says the output differs in one place and shows what it expected (goodbye) against what it got (hello);
  • Test run with This draft chosen shows the unsaved test's run above the canvas;
  • mending the expectation passes the test again; Save records the new version's tests ("Checked when version 2 was saved"); Deploy v2 goes live.

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)

  • Both flows pass six times in a row against the dev stack and three times against the production bundle served by vite preview, the way CI runs it, with the other automation specs beside them (two workers).
  • Mutation-checked — a spec that never failed proves nothing: the dock stops saying when tests were checked → the spec fails on that line; the result's "got" side repeats the expectation → it fails on the diff ("No changes" where goodbye was 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 status clean).
  • tsc, oxlint and the format check on the spec, lint:manual, knip.

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.
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