-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathupdate.feature
More file actions
30 lines (25 loc) · 1.01 KB
/
update.feature
File metadata and controls
30 lines (25 loc) · 1.01 KB
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
@notebook
Feature: Homepage
In order to keep my notes organized
As an authenticated user
I need to be able to edit notebooks list
Background:
Given there are following users:
| username | password |
| Greg | a |
| Katie | a |
Scenario: User should can update notebook
and be redirected to notebook tasks
Given I am authenticated as "Greg"
And I go to "/notebooks/"
And I follow "Edit Todo list"
And I fill in "notebook_name" with "Shopping list edited"
And I press "Submit"
Then I should see success message "The notebook has been updated successfully"
And should be redirected to "/notebooks/(.+)"
# Scenario: Notebook update form should fail when leave notebook name empty
#
# Scenario: User cannot update non-existing notebook giving prepared URL
#
# Scenario: User cannot delete other's notebook giving prepared URL
#