blob: b59d11fa57dc88b52d764c61f91598e275bbb1c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Feature: Registration
Allow new users to register on the website.
As a new visitor
I want to register for an account to gain access to the website.
Scenario Outline: Register a new user
Given the user is on the registration page
When they enter a <username>, <email> and <password>
Then it redirects them to edit their profile
Examples:
| username | email | password |
| mo | mo@example.org | password |
| joe | joe@example.org | the secret |
Scenario Outline:: The username is taken
Given the user is on the registration page
When the username <username> is already registered
And they enter a <username>, <email> and <password>
Then it displays the following "Username has already been taken"
Examples:
| username | email | password |
| mo | mo@example.org | password |
| joe | joe@example.org | the secret |
Scenario Outline:: The email address is already registered
Given the user is on the registration page
When the email <email> is already registered
And they enter a <username>, <email> and <password>
Then it displays the following "Email has already been taken"
Examples:
| username | email | password |
| mo | mo@example.org | password |
| joe | joe@example.org | the secret |
|