Created
May 27, 2010 16:57
-
-
Save neaf/416047 to your computer and use it in GitHub Desktop.
This file contains 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: Viewing client index | |
As a team member | |
I want to see client index | |
Scenario: No client accounts exist | |
Given I am logged in as team member | |
And no active client accounts exist | |
When I go to clients index page | |
Then I should see "No active client accounts exist right now." message | |
Scenario: Client accounts exist | |
Given I am logged in as team member | |
And following active client accounts exist: | |
| John Doe | [email protected] | | |
| Jane Doe | [email protected] | | |
When I go to clients index page | |
Then I should see a table with active clients | |
Scenario: Pending invitations exist | |
Given I am logged in as team member | |
And following pending client accounts exist: | |
| [email protected] | | |
| [email protected] | | |
When I go to clients index page | |
Then I should see a table with pending invitations | |
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 "[email protected]" email does not exist | |
When I go to clients index page | |
And I fill in "Email" field with "[email protected]" 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 pending client account with "[email protected]" email exist | |
When I go to clients index page | |
And I fill in "Email" field with "[email protected]" 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 client account with "[email protected]" email exist | |
When I go to clients index page | |
And I fill in "Email" field with "[email protected]" 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