Skip to content

Authentication

Manuel edited this page Dec 16, 2024 · 18 revisions

Login

Description

Here is where the user with an existing account can log in. In case a user tries to login with valid but unregistered credentials he will be denied access. Also any empty and invalid inputs the user submits will raise appropriate error messages.

User Stories & Test Case names

  • should display all the necessary elements

As a user, I want to be able to login with an existing account, so that I can preserve my user data:

  • should login with an existing account
  • should preserve previous user data

As a webmaster, I want a user trying to login with unregistered but valid credentials to be denied access:

  • should not login with an unregistered but valid credentials

As a user, I want descriptive error labels to be displayed on login form, so that I know which data to input:

  • should display error label 'An email address required.' when submitting an empty email address
  • should display error label 'Invalid email address.' when submitting an invalid email address
  • should display error label 'A password required.' when submitting an empty password
  • should display error label 'Invalid password.' when submitting an invalid password

Login - EP test cases

Login invalid email:

  • should consider any email without '@' as invalid
  • should consider any email with '@' as valid

(See test cases) (See code)

Register

Description

Here is where the user without an account can come register one. If the user tries to register an account with an already registered email he will be denied access. Also if the user tries to submit and empty or invalid inputs appropriate error messages will be shown.

User Stories

  • should display all the necessary elements

As a user, I want to be able to register an account, so that I can log in and access my account later:

  • should register an account

As a user, I want descriptive error labels to be displayed on email form, so that I know which data to input:

  • should display error label 'Invalid email address.' when submitting an empty email address

As a webmaster, I want user that tries to register with an existing email to be denied access, so that they need to add an unique email:

  • should not allow user to register with existing email

As a user, I want descriptive error labels to be displayed on register form, so that I know which data to input:

  • should display error label 'Email already taken.' when submitting a used email
  • should display error label 'Invalid email address.' when submitting an empty email address
  • should display error label 'Invalid email address.' when submitting an invalid email address
  • should display error label 'firstname is required.' when submitting an empty first name
  • should display error label 'lastname is required.' when submitting an empty last name
  • should display error label 'passwd is required.' when submitting an empty password
  • should display error label 'passwd is invalid.' when submitting an invalid password

Register - EP test cases

Register invalid email:

  • should consider any email without '@' as invalid
  • should consider any email with '@' as valid

Register invalid password:

  • should consider any password with less than 5 characters as invalid
  • should consider any password with 5 characters or more as valid

Register - BVA test cases

Register invalid password:

  • should have boundary for invalid partition at 4 characters
  • should have boundary for valid partition at 5 characters

(See test cases) (See code)

Clone this wiki locally