mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 21:08:48 +01:00
Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
This commit is contained in:
parent
6a42901514
commit
4cbf5a34d3
2269 changed files with 0 additions and 0 deletions
27
test/selenium/notes/badge_count.rsel
Normal file
27
test/selenium/notes/badge_count.rsel
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/notes/"
|
||||
assert_text 'badge_count', '2'
|
||||
|
||||
# add new note
|
||||
open "/projects/1"
|
||||
click "css=#add_note_href"
|
||||
type "css=#new_note_body", "new note"
|
||||
click "add-new-note"
|
||||
|
||||
# wait until new note is saved
|
||||
wait_for_text_not_present "new note"
|
||||
wait_for_text_present "new note"
|
||||
|
||||
# check badge count is one more
|
||||
open "/notes/"
|
||||
assert_text 'badge_count', '3'
|
||||
|
||||
# delete note
|
||||
click "css=#delete_note_1"
|
||||
assert_confirmation "Are you sure that you want to delete the note '1'?"
|
||||
|
||||
# check badge decreased
|
||||
wait_for_visible "flash"
|
||||
wait_for_element_not_present "container_note_1"
|
||||
assert_text 'badge_count', '2'
|
||||
5
test/selenium/notes/link_to_note.rsel
Normal file
5
test/selenium/notes/link_to_note.rsel
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/projects/1"
|
||||
click_and_wait "css=#note_1 .link_to_notes"
|
||||
assert_element_present "note_1"
|
||||
5
test/selenium/notes/see_all_notes.rsel
Normal file
5
test/selenium/notes/see_all_notes.rsel
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/notes/"
|
||||
assert_element_present "note_1"
|
||||
assert_element_present "note_2"
|
||||
5
test/selenium/notes/toggle_notes.rsel
Normal file
5
test/selenium/notes/toggle_notes.rsel
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/notes"
|
||||
click "css=#toggle-notes-nav"
|
||||
wait_for_element_present "css=body.notes"
|
||||
Loading…
Add table
Add a link
Reference in a new issue