Created
April 29, 2010 17:02
-
-
Save neaf/383889 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Creating client account | |
| As team member | |
| I want to create client account | |
| So additional account information can be provided after visiting specified link | |
| Scenario: Invalid email address provided | |
| Given I am logged in as team member | |
| When I go to clients index page | |
| And I fill in "Email" field with "invalid_email" in "New client" form | |
| And I click "Create" button | |
| Then I should see "Invalid email provided" message | |
| Scenario: Valid email address provided | |
| Given account with "john@doe.com" email does not exist | |
| Given I am logged in as team member | |
| When I go to clients index page | |
| And I fill in "Email" field with "john@doe.com" in "New client" form | |
| And I click "Create" button | |
| Then I should see "Account created" message | |
| And I should see URL to pass to the client | |
| Scenario: Existing inactive account email address provided | |
| Given inactive account with "john@doe.com" email exist | |
| Given I am logged in as team member | |
| When I go to clients index page | |
| And I fill in "Email" field with "john@doe.com" in "New client" form | |
| And I click "Create" button | |
| Then I should see "Account with specified email already exist" message | |
| Then I should see URL to pass to the client | |
| Scenario: Existing active account email address provided | |
| Given active account with "john@doe.com" email exist | |
| Given I am logged in as team member | |
| When I go to clients index page | |
| And I fill in "Email" field with "john@doe.com" in "New client" form | |
| And I click "Create" button | |
| Then I should see "Active account with specified email already exist" message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment