mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-15 19:58:08 +01:00
add partial feature for notes. needs to be finished
This commit is contained in:
parent
2073f84cd8
commit
149d05e04f
4 changed files with 189 additions and 2 deletions
48
features/notes_manage.feature
Normal file
48
features/notes_manage.feature
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
Feature: View, add, remove notes
|
||||
|
||||
In order to manage my notes
|
||||
As a Tracks user
|
||||
I want to view, add, and remove notes
|
||||
|
||||
Background:
|
||||
Given the following user record
|
||||
| login | password | is_admin |
|
||||
| testuser | secret | false |
|
||||
|
||||
Scenario: View notes
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have two projects with one note each
|
||||
When I go to the notes page
|
||||
Then 2 notes should be visible
|
||||
And the badge should show 2
|
||||
|
||||
@focus
|
||||
Scenario: Add a new note
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have one project "Pass Final Exam" with no notes
|
||||
When I add note "My Note A" from the "Pass Final Exam" project page
|
||||
Then I should see note "My Note A" on the "Pass Final Exam" project page
|
||||
And I should see note "My Note A" on the notes page
|
||||
Then the badge should show 1
|
||||
|
||||
Scenario: Delete note from notes page
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have a project "Pass Final Exam" with 2 notes
|
||||
When I go to the notes page
|
||||
And I delete the first note
|
||||
Then the first note should disappear
|
||||
Then the badge should show 1
|
||||
|
||||
Scenario: Link to note
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have one project "Pass Final Exam" with 1 note
|
||||
When I visit the "Pass Final Exam" project page
|
||||
And I click the icon next to the note
|
||||
Then I should see the note text
|
||||
|
||||
Scenario: Toggle notes
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have two projects with one note each
|
||||
When I go to the notes page
|
||||
And I click Toggle Notes
|
||||
Then the body of the notes should be shown
|
||||
Loading…
Add table
Add a link
Reference in a new issue