Writing Test Steps
Build a test's steps in the editor, with a worked example.
A test is an ordered list of steps. The browser performs them top to bottom and the test passes only if every step succeeds. The first failing step stops the test.
This page covers the editor. For every action, how targets resolve, and timeouts, see the Test steps reference.
Video
Open the editor
New manual test or Edit on any test, both on the Test cases page. Steps sits below the test details.
Anatomy of a step
| # | Control | Does |
|---|---|---|
| 1 | Drag handle | Reorder by dragging. |
| 2 | Position | Execution order. |
| 3 | Action | What the browser does. |
| 4 | Target | Where it applies; meaning depends on the action. |
| 5 | Move arrows | Nudge one position. |
| 6 | Remove | Delete the step. |
Some actions add a value field, a condition dropdown, or region fields.
Worked example
Adding a product to the cart updates the cart badge.
navigate to /products. The editor starts with this step.
Add step (defaults to click). Target: Add to cart.
Add step, set the action to assert, condition visible, target 1 (the badge text).
Reordering and inserting
Hover between two rows and click Insert step; drag the handle to reorder. Add step always appends a click at the bottom.
You can also record steps in a browser instead of typing them.
Saving
Saving needs a title and a target on every step. New tests are Pending review; an edit creates a new version that returns to review.