tracks/test/selenium/project_detail/change_default_context.rsel

27 lines
632 B
Text
Raw Normal View History

setup :fixtures => :all
login :as => 'admin'
open "/projects/2"
2009-10-09 21:27:27 -04:00
click 'css=.project_settings a'
wait_for_visible "project[default_context_name]"
# change default context
type "project[default_context_name]", "errand"
2009-10-09 21:27:27 -04:00
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"