tracks/test/selenium/project_detail/change_default_context.rsel

25 lines
570 B
Text
Raw Normal View History

setup :fixtures => :all
login :as => 'admin'
open "/projects/2"
# change default context
type "project[default_context_name]", "errand"
click "commit"
wait_for_visible "flash"
# add actions
type "todo_description", "test1"
click "css=#todo-form-new-action .submit_box button"
wait_for_visible "flash"
wait_for_not_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"