Skip to main content
Sets the value before the next step runs. Useful for seeding the page with feature flags, onboarding state, or auth tokens that the app reads from localStorage.

Parameters

ParameterTypeRequiredDescription
keystringYeslocalStorage key.
valuestringYeslocalStorage value.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Examples

- localStorage:
    key: momenticTestKey2
    value: momenticTestValue3
- localStorage:
    key: featureFlags
    value: '{"newCheckout":true}'