mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
26 lines
632 B
Text
26 lines
632 B
Text
setup :fixtures => :all
|
|
login :as => 'admin'
|
|
open "/projects/2"
|
|
|
|
click 'css=.project_settings a'
|
|
wait_for_visible "project[default_context_name]"
|
|
|
|
# change default context
|
|
type "project[default_context_name]", "errand"
|
|
click "css=.positive"
|
|
|
|
wait_for_visible "flash"
|
|
|
|
# add actions
|
|
type "todo_description", "test1"
|
|
click "css=#todo-form-new-action .submit_box button"
|
|
|
|
wait_for_visible "flash"
|
|
|
|
type "todo_description", "test2"
|
|
click "css=#todo-form-new-action .submit_box button"
|
|
wait_for_visible "flash"
|
|
|
|
# check that context errand now contains 2 todos
|
|
open "/contexts/4"
|
|
assert_text "badge_count", "2"
|