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