Custom Journeys
Define multi-step browser tests to monitor critical user flows.
What is a Journey?
A journey is a user-defined sequence of browser actions that Teste.no executes with Playwright. Use them to test flows that matter most to your business — checkout, login, search, onboarding, etc.
Journey Steps
| Action | Description |
|---|---|
| navigate | Go to a specific URL |
| click | Click an element (CSS selector) |
| type / fill | Enter text into an input field |
| select | Choose an option from a dropdown |
| assert | Verify something is true (element visible, URL contains, text matches) |
| wait | Pause for a specified duration |
| screenshot | Capture a screenshot at this step |
| scroll | Scroll to an element or position |
| hover | Hover over an element |
Assertions
| Operator | What it checks |
|---|---|
| element_visible | An element matching the selector is visible on the page |
| element_hidden | No visible element matches the selector |
| url_contains | Current URL includes the specified text |
| text_contains | Page body contains the specified text |
| element_count | Number of matching elements equals expected count |
Variables
Use {{VARIABLE_NAME}}in step values to inject secrets from the target's vault:
{{LOGIN_EMAIL}}— Injects the stored login email{{LOGIN_PASSWORD}}— Injects the stored password
Any key stored in the Secrets Vault can be used as a variable. Secrets are never logged or shown in screenshots.
Page Fragments
Fragments are reusable step sequences shared across journeys. Common patterns:
- Login with Credentials — Navigate to login, fill email/password, submit
- Dismiss Cookie Banner — Close common consent popups
- Scroll to Bottom — Trigger lazy-loaded content
- Add to Cart — Generic product → cart flow
Reference a fragment in a journey step using the use_fragment action. Fragment steps are expanded inline at execution time.
Pre-built Templates
Start from a template and customize for your site:
| Template | Steps |
|---|---|
| Shopify Checkout | Navigate → find product → add to cart → proceed to checkout → verify |
| WooCommerce Checkout | Navigate → add to cart → checkout page → verify form |
| Login Flow | Navigate to login → fill credentials → submit → verify dashboard |
| Search Flow | Navigate → find search → enter query → verify results |
Visual Evidence
Journey tests support on-demand video recording. Click Record Evidence on a run card or enable Auto-record on failure in target settings to capture .webm video when tests fail.
Videos are retained for 7 days (failures) or 72 hours (passes).