-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlist.feature
More file actions
28 lines (24 loc) · 980 Bytes
/
list.feature
File metadata and controls
28 lines (24 loc) · 980 Bytes
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
@notebook
Feature: Homepage
In order to keep my notes organized
As an authenticated user
I need to be able to see my notebooks list
Background:
Given there are following users:
| username | password |
| Greg | a |
| Katie | a |
Scenario: Anonymous user should not be able to view notebook list
Given I am anonymous user
And I go to "/notebooks/"
Then I should be redirected to "/login"
Scenario: User should not see other's notebooks on the list
Given I am authenticated as "Katie"
And I go to "/notebooks/"
Then I should see "Todo list"
And I should not see "Shopping list"
Scenario: User should see own notebooks on the list
Given I am authenticated as "Greg"
And I go to "/notebooks/"
Then I should see "Todo list"
And I should see "Shopping list"