forked from fatfreecrm/fat_free_crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusers.feature
34 lines (32 loc) · 1.13 KB
/
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
30
31
32
33
34
@javascript
Feature: Users can login and use the CRM
In order to ensure only authorised users can access the CRM
Users
Want to be able to login and edit their profile
Scenario: User can login
Given a user with attributes:
|username|bob|
When I go to the home page
Then I should see "Login"
When I fill in the following:
|authentication[username]|bob |
|authentication[password]|password|
And I press "Login"
Then I should see "Welcome to Fat Free CRM!"
Scenario: User can edit their profile
Given a logged in user
When I go to the home page
Then I should see "Profile"
And I take a screenshot called "homepage.png"
When I follow "Profile"
Then I should see "My Profile"
And I take a screenshot called "profile.png"
When I follow "Edit Profile"
Then I should see "First name:"
And I take a screenshot called "edit_profile.png"
When I fill in the following:
|user[first_name]|Bob |
|user[last_name] |Jones |
And I press "Save Profile"
Then I should see "Bob Jones"
And I take a screenshot called "bob_jones_profile.png"