-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathview.feature
More file actions
23 lines (20 loc) · 834 Bytes
/
view.feature
File metadata and controls
23 lines (20 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@notebook
Feature: Notebook
In order to keep my notes organized
As an authenticated user
I need to be able to see my notebooks
Background:
Given there are following users:
| username | password |
| Greg | a |
| Katie | a |
Scenario: User should open own notebooks from the list
Given I am authenticated as "Katie"
And I go to "/notebooks/"
And I follow "Todo list"
Then I should be on "/notebooks/todo-list"
And the response status code should be 200
Scenario: User shouldn't open another user's notebooks giving prepared URL
Given I am authenticated as "Katie"
And I go to "/notebooks/shopping-list"
Then the response status code should be 404