tracks/test/selenium/project_detail/change_default_context.rsel
Eric Allen e17b495b95 Fix annoying test
Waiting for the flash to hide just wastes seconds
2009-12-16 17:43:57 -05:00

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"