-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjournal.app.feature
41 lines (35 loc) · 2.11 KB
/
journal.app.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
35
36
37
38
39
40
41
Feature: Journal Management
As a user I should be able to manage my journal entries.
Scenario: I can create a new journal entry
Given There is a journal named "The weather is great" in the journal list
When I add a new journal called "Took out the trash"
Then I should see the journal "Took out the trash" in the list of journal entries
Scenario: A journal can be deleted from the list
Given There is a journal named "The weather is great" in the journal list
When I delete the journal item from the list
Then The journal item "The weather is great" should no longer be in the list
Scenario: A journal can be set as a favorite
Given There is a journal named "The weather is great" in the journal list
When The journal entry is set as a favorite
Then The journal entry "The weather is great" should be marked as a favorite
And The favorite journal "The weather is great" should be saved to the client storage repository
Scenario: Delete a journal that is marked as a favorite
Given There is a journal named "The weather is great" in the journal list
And The journal entry is set as a favorite
When I delete the journal item from the list
And It is set for pending deletion
And I confirm the deletion
Then The journal item "The weather is great" should no longer be in the list
And The favorite journal "The weather is great" should be removed from the client storage repository
Scenario: A journal pending delete can be cancelled
Given There is a journal named "The weather is great" in the journal list
And The journal entry is set as a favorite
When I delete the journal item from the list
And It is set for pending deletion
When I cancel the deletion
Then The journal item "The weather is great" should still be in the list
And The pending deletion should be removed
Scenario: App is hydrated with favorite journal entries on load
Given The client storage repository has a favorite journal entry "The weather is great"
When The app is loaded
Then The favorite journal "The weather is great" should be in the list of journal entries