mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 06:51:48 +01:00
Started moving selenium on rails tests over to RSpec stories. See the updated README_DEVELOPERS for info on running the new tests.
This commit is contained in:
parent
85dc6f4898
commit
d47e863dfc
12 changed files with 257 additions and 74 deletions
41
stories/notes/view_add_remove.story
Normal file
41
stories/notes/view_add_remove.story
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
Story: View, add, remove notes
|
||||
|
||||
As a Tracks user
|
||||
I want to view, add, and remove notes
|
||||
So that I can keep important information easily accessible
|
||||
|
||||
Scenario: View and toggle notes
|
||||
|
||||
Given a logged in user Luis
|
||||
And Luis has two projects with one note each
|
||||
When Luis visits the notes page
|
||||
Then two notes should be visible
|
||||
And the badge should show 2
|
||||
When Luis clicks Toggle Notes
|
||||
Then the body of the notes should be shown
|
||||
|
||||
Scenario: Add a new note
|
||||
|
||||
Given a logged in user Luis
|
||||
And Luis has one project Pass Final Exam with no notes
|
||||
When Luis adds a note from the Pass Final Exam project page
|
||||
Then Luis should see the note on the Pass Final Exam project page
|
||||
And Luis should see the note on the notes page
|
||||
And the badge on the notes page should show 1
|
||||
|
||||
Scenario: Delete note from notes page
|
||||
|
||||
Given a logged in user Luis
|
||||
And Luis has one project Pass Final Exam with 2 notes
|
||||
When Luis visits the notes page
|
||||
And Luis deletes the first note
|
||||
Then the first note should disappear
|
||||
Then the badge should show 1
|
||||
|
||||
Scenario: Link to note
|
||||
Given a logged in user Luis
|
||||
And Luis has one project Pass Final Exam with 1 note
|
||||
When Luis visits the Pass Final Exam project page
|
||||
And clicks the icon next to the note
|
||||
Then he should see the note text
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue