Full hunt definition
auth/password-reset.yml# Password Reset Flow
# ---
# Pattern: Forgot password request and verification
# What it tests: Navigates to forgot password, submits email, verifies confirmation.
# Customize:
# - Update the link text and form field labels for your app
# - Update the success message text
#
# Note: This hunt only tests the request side of password reset.
# Testing the actual reset (clicking the email link) requires
# access to the test email inbox, which is app-specific.
name: password-reset
description: Request a password reset and verify confirmation
tags:
- auth
- password
- form
vars:
EMAIL: "{{TEST_EMAIL}}"
steps:
- navigate: "/login"
# Click the forgot password link
- click: "Forgot password?"
- wait: "Reset your password"
# Enter the email address
- fill:
"Email": "{{EMAIL}}"
- click: "Send Reset Link"
- waitForNetworkIdle:
timeout: 5000
# Verify the confirmation message
- assert:
visible: "Check your email"
assertions:
- noConsoleErrors: true