/
manage_users.feature
29 lines (26 loc) · 1.06 KB
/
manage_users.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Feature: Manage Users
In order to control who can access my website's backend
As an administrator
I want to create and manage users
Scenario: When there are no users, you are invited to create a user
Given I have no users
When I go to the home page
Then I should see "There are no users yet, so we'll set you up first."
Scenario: When there are no users, you can create a user
Given I have no users
And I go to the home page
When I press "Continue..."
And I should see "Fill out your details below so that we can get you started."
And I fill in "Login" with "cucumber"
And I fill in "Email" with "green@cucumber.com"
And I fill in "Password" with "greenandjuicy"
And I fill in "Password confirmation" with "greenandjuicy"
And I press "Sign up"
Then I should see "Welcome to Refinery, cucumber."
And I should see "Latest Activity"
And I should have 1 user
Scenario: User List
Given I have a user named "resolve"
And I am a logged in user
When I go to the list of users
Then I should see "resolve"