-
Notifications
You must be signed in to change notification settings - Fork 0
Features ‐ Register user account
Source document: RegisterUserAccount.feature.
As a user
I want to sign up
So that I can access the application
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
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"
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
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
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
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
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
Given the sign up page
When I click on the "cancel" button
Then I can see the landing page
Given the sign up page
And the "username" field filled with "username"
Then I can see the landing page