Skip to content

Test Examples

A library of copy-paste test starters organized by use case.

View as Markdown

Copy any of these as a starting point and adapt the details to your app.

Authentication

Magic link / passwordless login

  1. 1User opens the login page at /login.
  2. 2Enters "[email protected]" in the email field.
  3. 3Clicks "Send magic link".

Expected outcome

A confirmation message appears: "Check your email for a sign-in link." The email field is no longer shown.

OAuth button visible

  1. 1User opens the login page at /login.

Expected outcome

A "Continue with Google" button is visible. The button links to the selected provider's OAuth test.

Password reset request

  1. 1User opens /forgot-password.
  2. 2Enters "[email protected]" in the email field.
  3. 3Clicks "Send reset link".

Expected outcome

A success message appears confirming the reset email was sent.


Top navigation links work

  1. 1User opens the homepage.
  2. 2Clicks "Pricing" in the top navigation bar.

Expected outcome

The pricing page loads with at least one pricing plan visible.

404 page

  1. 1User navigates to /this-page-does-not-exist.

Expected outcome

A 404 page is shown. The page contains a message indicating the page was not found. A link to return to the homepage is visible.

Mobile menu

  1. 1User opens the homepage on a mobile viewport (375px wide).
  2. 2Taps the hamburger menu icon.

Expected outcome

A navigation menu slides in or appears. Links to main pages (e.g. "Pricing", "Docs") are visible.


Forms

Newsletter signup

  1. 1User opens the homepage.
  2. 2Scrolls to the newsletter signup section.
  3. 3Enters "[email protected]" in the email field.
  4. 4Clicks "Subscribe".

Expected outcome

A success message appears confirming the subscription. The input field is cleared or hidden.

Required field validation

  1. 1User opens the contact form at /contact.
  2. 2Clicks "Send message" without filling in any fields.

Expected outcome

Validation errors appear indicating required fields are missing. The form is not submitted.


E-commerce

Product listing to detail page

  1. 1User opens the shop at /shop.
  2. 2Clicks on the first product card.

Expected outcome

A product detail page opens. The product name, price, and an "Add to cart" button are visible.

Add to cart

  1. 1User opens a product detail page at /shop/example-product.
  2. 2Clicks "Add to cart".

Expected outcome

The cart icon in the header updates to show 1 item. A success notification confirms the item was added.


Content & publishing

Blog index loads

  1. 1User opens the blog at /blog.

Expected outcome

A list of blog posts is visible. Each post shows a title and a publish date. At least one post is present.

Search returns results

  1. 1User opens /search.
  2. 2Types "getting started" in the search input.
  3. 3Presses Enter or clicks the search button.

Expected outcome

A list of search results appears. Each result has a title and a short excerpt.


Dashboard & app

Empty state

  1. 1User logs in and navigates to /projects.
  2. 2There are no projects created yet.

Expected outcome

An empty state is shown with a "Create project" call to action. No error messages are visible.

Settings page accessible

  1. 1User logs in and navigates to /settings.

Expected outcome

The settings page loads. Sections for profile, notifications, or billing are visible. No redirect to login occurs.

On this page