Hacker News new | ask | show | jobs
by geerlingguy 3464 days ago
> Is that considered the most used path in standard behaviour?

Yes, basically. If you're building an application that allows people to submit a contact form, then the happy path would be something like:

  1. Load form
  2. Verify the correct fields are there
  3. Fill out form with valid data
  4. Submit form
  5. Verify submission went through correctly
The happy path is a minimum viable test to make sure things are working. For completeness, you'd also want to make sure that input is sanitized, invalid input (e.g. non-functional email addresses) causes a form submission to fail, and layout looks correct (e.g. CSS styles applied).