Skip to content

Features ‐ Register user account

GitHub Action edited this page Jul 19, 2026 · 1 revision

Source document: RegisterUserAccount.feature.

As a user
I want to sign up
So that I can access the application

Scenario: The Sign Up Page

Given the landing page

When I click on the "sign up" button

Then I can see the "sign up" page
And I can see the "username" field
And I can see the "password" field
And I can see the "hint" field
And I can see the "sign up" button

Scenario: Create Account

Given the sign up page
And the "username" field filled with "username"
And the "password" field filled with "passWORD$123"
And the "hint" field filled with "account hint"
And the "email" field filled with "test@email.com"

When I click on the "sign up" button

Then I can see the "acounts" page
And the current user is "username"

Scenario: Error messages for mandatory input fields

Given the sign up page

When I click on the "sign up" button

Then I can see "A username is required." error message for the "username" field
And I can see "A password is required." error message for the "password" field
And I can see "A hint is required." error message for the "hint" field
And I can see "An email address is required." error message for the "email" field

Scenario: Error messages for invalid email address

Given the sign up page
And the "username" field filled with "username"
And the "password" field filled with "passWORD$123"
And the "hint" field filled with "account hint"
And the "email" field filled with "invalid"

When I click on the "sign up" button
And I can see "A valid email address is required." error message for the "email" field

Scenario: Duplicate Account

Given the sign up page
And the "username" field filled with "username"
And the "password" field filled with "passWORD$123"
And the "hint" field filled with "account hint"
And the "email" field filled with "test@email.com"
But a user with "username" username and "different@email.com" email already exists

When I click on the "sign up" button

Then I can see "The username is unavailable." error message for the "username" field

Scenario: Field Character Limit

Given the sign up page
And the "username" field filled with 251 characters
And the "password" field filled with 251 characters
And the "hint" field filled with 251 characters

When I click on the "sign up" button

Then I can see "The username can be at most 250 characters." error message for the "username" field
And I can see "The password can be at most 250 characters." error message for the "password" field
And I can see "The hint can be at most 250 characters." error message for the "hint" field

Scenario: Password Strength

Given the sign up page
And the "username" field filled with "username"
And the "password" field filled with "pass"
And the "hint" field filled with "account hint"

When I click on the "sign up" button
And I can see "The password must be strong, at least 8 characters long containing both lowercase and uppercase letters alongside at least one numeric and special character." error message for the "password" field

Scenario: Cancel Button

Given the sign up page

When I click on the "cancel" button

Then I can see the landing page

Scenario: Cancelling Creating an Account

Given the sign up page
And the "username" field filled with "username"

Then I can see the landing page

Clone this wiki locally