Created
May 2, 2010 22:11
-
-
Save neaf/387497 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 "Invite client" fieldset | |
| And I click "Invite" button | |
| Then I should see "Invalid email provided" message | |
| Scenario: Valid email address provided | |
| Given I am logged in as team member | |
| And account with "john@doe.com" email does not exist | |
| When I go to clients index page | |
| And I fill in "Email" field with "john@doe.com" in "Invite client" fieldset | |
| And I click "Invite" 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 I am logged in as team member | |
| And inactive account with "john@doe.com" email exist | |
| When I go to clients index page | |
| And I fill in "Email" field with "john@doe.com" in "Invite client" fieldset | |
| And I click "Invite" button | |
| Then I should see "Invitation has been already sent to this email" message | |
| Then I should see URL to pass to the client | |
| Scenario: Existing active account email address provided | |
| Given I am logged in as team member | |
| And active account with "john@doe.com" email exist | |
| When I go to clients index page | |
| And I fill in "Email" field with "john@doe.com" in "Invite client" fieldset | |
| And I click "Invite" button | |
| Then I should see "Active account with that email already exist" message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment