Skip to content

feat(platform): start a test run's input from somewhere - #4816

Merged
yannickmonney merged 3 commits into
mainfrom
feat/automation-run-sources
Oct 11, 2026
Merged

yannickmonney merged 3 commits into
mainfrom
feat/automation-run-sources

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

The Test run dialog can start its input from somewhere, and a try of the draft can use a test's stand-ins (P5 S10c2). Builds on #4815.

  • Start from, above Run input (JSON) in the editor's Test run dialog, is a menu in sections:
    • Tests: each test's input.
    • Runs: the five newest runs. Their input is read once one is chosen.
    • Trigger: the bound trigger's input.
    • Other: Empty, or Fill the required fields with a typed placeholder for each one.
  • Choosing replaces the input and says so politely ("Input replaced from big order.").
  • The dialog keeps the last choice per automation in session storage and opens on it: a test by its name, a run as the newest one.
  • A test that simulates steps adds Use the test's simulated outputs and failures, on by default, with "Simulates Discount.".
    • Trying the draft then sends the test's mocks and failures as the try's bench, and those steps carry their chip on the canvas.
    • A saved version's run (/start) takes no bench, and the dialog says so when the version is chosen.
  • A try now always sends the dialog's input.
  • The editor's runs read asks for the five newest runs (it asked for one); the newest is still what the canvas overlays.
  • The automation-run-input docs shot is retaken: the dialog now shows Start from.

Docs and manual

  • The editor page's "Try the draft" (EN/DE/FR) describes Start from and the stand-ins, with a new screenshot (automation-run-start-from). The run input shot's alt text names the button.
  • Manual: AUTO-F176, 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,549 of 7,550. The one red, version-compare-page.test.tsx, read the node panel while its content was drawn twice under load. It passes alone, and this PR makes it wait for the panel to settle (its own commit). Automations browser tests: 95 of 95.

  • @tale/ui unit (4,095) and browser (223), services/docs (709) and services/ui-docs (106) tests, lint:links, lint:manual, knip.

  • New tests:

    • the sources in order, a test's stand-ins, the required fields, and what is remembered (run-sources.test.ts);
    • the dialog: a test's input with its stand-ins on a try, without them, the version's note, a run's input read once chosen, and opening on the last choice;
    • the editor: a try from a test's input sending its bench.
  • Live in Chromium on a local stack (Order discounts), no console errors:

    • A stored test run of v1 with {"quantity": 50, "unitPrice": 10} put a run under Runs in the menu, next to the three tests and Empty / Fill the required fields.
    • Choosing the run filled its input (quantity 50).
    • Choosing a test whose YAML simulates Discount filled its input, checked the stand-ins box ("Simulates Discount.") and said "Input replaced from Stubbed discount.".
    • The try succeeded, with Discount marked Simulated output on the canvas.
    • Reopening the dialog started from that test again.

…igger

Start from, above the Test run dialog's input, fills it from a test, one of the five newest runs (read once chosen), the bound trigger's input, nothing, or the required fields, says so, and keeps the last choice per automation. A test that simulates steps adds its stand-ins to a try of the draft, on by default; a saved version's run takes none and the dialog says so.
Under a busy machine the panel's content can be drawn twice for a moment, and the test read it then; it now waits for the one entry.
The editor page's Try the draft explains Start from and a test's stand-ins, with a screenshot of the menu; the run input shot is taken again with the button.
@yannickmonney
yannickmonney merged commit c7dad69 into main Oct 11, 2026
@yannickmonney
yannickmonney deleted the feat/automation-run-sources branch October 11, 2026 17:35
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