# Signup and verification test cases

A starting point: adapt these to your app. These cases cover creating an account with an email and password, and verifying the email. They are generic, not full coverage of your app: remove what does not apply and add what is special about yours.

## SIG-01: Create an account with valid details

Type: Positive

Steps:

1. Open the signup page
2. Enter a new email and a valid password
3. Select Create account

Expected result: The account is created, and a page says a verification email was sent.

Status: Not run

## SIG-02: The verification link verifies the email

Type: Positive

Steps:

1. Open the verification email
2. Select the link

Expected result: A page says the email is verified, and the account can use everything that needs it.

Status: Not run

## SIG-03: An email that already has an account

Type: Negative

Steps:

1. Open the signup page
2. Enter an email that already has an account, and a valid password
3. Select Create account

Expected result: A message says the email is in use and offers sign in or a password reset.

Status: Not run

## SIG-04: An email in the wrong format

Type: Negative

Steps:

1. Enter 'name@' as the email
2. Select Create account

Expected result: The email field says the address is not valid, and nothing is sent.

Status: Not run

## SIG-05: A password one character short of the minimum

Type: Boundary

Steps:

1. Enter a password one character shorter than your app's minimum
2. Select Create account

Expected result: The password field says how long a password must be.

Status: Not run

## SIG-06: A password exactly at the minimum

Type: Boundary

Steps:

1. Enter a password exactly as long as your app's minimum
2. Select Create account

Expected result: The account is created.

Status: Not run

## SIG-07: The confirmation does not match

Type: Negative

Steps:

1. Enter a password, and a different one to confirm it, if your form asks twice
2. Select Create account

Expected result: A message says the passwords do not match.

Status: Not run

## SIG-08: An expired verification link

Type: Negative

Steps:

1. Wait until the verification link expires, or use an old one
2. Select the link

Expected result: A page says the link has expired and offers to send a new one.

Status: Not run

## SIG-09: A verification link used twice

Type: Negative

Steps:

1. Verify the email with its link
2. Select the same link again

Expected result: A page says the email is already verified, with no error.

Status: Not run

## SIG-10: Resend the verification email

Type: Positive

Steps:

1. Sign up
2. Select Resend email

Expected result: A new email arrives, and the newest link works.

Status: Not run

## SIG-11: An unverified account is limited

Type: Negative

Steps:

1. Sign up but do not verify
2. Try an action that needs a verified email

Expected result: A message asks to verify the email first, with a resend option.

Status: Not run

## SIG-12: Capitals and spaces in the email

Type: Boundary

Steps:

1. Sign up with ' New.User@Example.com '
2. Sign in later with 'new.user@example.com'

Expected result: Both refer to the same account, if your app treats emails as case-insensitive.

Status: Not run

## SIG-13: Required agreement not ticked

Type: Negative

Steps:

1. Fill in the form but leave the terms box unticked, if there is one
2. Select Create account

Expected result: The form says the terms must be accepted, and no account is created.

Status: Not run
