Save Auth State
save-auth-state writes the current cookies and local storage to a file so other tests can reuse the session with load-auth-state.
yaml
- navigate: /login
- type:
element: email
text: "{{ env.ADMIN_EMAIL }}"
- type:
element: password
text: "{{ secret.ADMIN_PASSWORD }}"
- click: sign in
- save-auth-state:
to: ./.auth/admin.json