tracks/test/selenium/project_detail/count_actions_in_hidden_project.rsel
Eric Allen 96f510abd4 ALL SELENIUM TESTS PASSING!!
Caught a couple of things that I had to fix plus a handful of broken tests. This is the first time in forever that we have a fully successful selenium suite.
2009-10-13 22:34:37 -04:00

25 lines
718 B
Text

setup :fixtures => :all
login :as => 'admin'
open '/projects/1'
assert_text 'badge_count', '2'
click 'css=.project_settings a'
wait_for_visible "project[default_context_name]"
click 'project_state_hidden'
click 'css=.positive'
wait_for_text_present 'marked as hidden'
assert_text 'badge_count', '2'
type "todo_description", "add one to hidden project 1"
click "css=#todo-form-new-action .submit_box button"
wait_for_visible "flash"
wait_for_not_visible "flash"
type "todo_description", "add one to hidden project 2"
click "css=#todo-form-new-action .submit_box button"
wait_for_visible "flash"
assert_text 'badge_count', '4'
open '/projects/1'
assert_text 'badge_count', '4'
assert_text_present 'marked as hidden'