mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
12 lines
386 B
Text
12 lines
386 B
Text
setup :fixtures => :all
|
|
login :as => 'admin'
|
|
open "/projects/1"
|
|
|
|
# add new todo
|
|
type "todo_description", "a brand new todo"
|
|
click "css=#todo-form-new-action .submit_box button"
|
|
wait_for_element_present "css=div#p1items div.item-container"
|
|
|
|
# wait for flash to mention that todo was added and verify existence of new todo
|
|
wait_for_visible "flash"
|
|
verify_text_present 'a brand new todo'
|