Skip to main content

Overview: Helper functions

Each new flow includes a Runner type Helpers test. This file acts as a shared location for reusable code across all flows in the same environment. Put common setup work here—such as navigation, login, or cleanup—so every flow can call it instead of duplicating code. When shared logic changes (for example, your app’s URL), update it in the Helpers file; any flow that uses it will automatically use the latest version. For example, the code below will be used in multiple tests.

How to: Create a helper file

1
Open the Runner Type Helpers file.
2
Create a function you want to reuse (e.g., navigate to your app, log in, reset data).
3
Move any repeated logic into this function.
4
Update your test to call the helper function directly.
Last modified on February 9, 2026