Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 | john@doe.com |
- | Jane Doe | jane@doe.com |
- 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:
- | pending_john@doe.com |
- | pending_jane@doe.com |
- 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 "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 pending client 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 client 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
Add Comment
Please, Sign In to add comment