2008-03-17 21:06:18 +00:00
|
|
|
setup :fixtures => :all
|
|
|
|
|
login :as => 'admin'
|
|
|
|
|
|
|
|
|
|
# set project to hidden state
|
|
|
|
|
open "/projects/2"
|
2009-10-07 16:32:34 -04:00
|
|
|
click 'css=.project_settings a'
|
|
|
|
|
wait_for_visible "project_state_hidden"
|
2008-03-17 21:06:18 +00:00
|
|
|
click 'project_state_hidden'
|
2009-10-07 16:32:34 -04:00
|
|
|
click 'submit_project_2'
|
2008-04-05 14:09:30 +00:00
|
|
|
# wait for flash before navigating away from project page to make sure that
|
|
|
|
|
# the changes have been saved
|
|
|
|
|
wait_for_visible "flash"
|
2008-03-17 21:06:18 +00:00
|
|
|
|
|
|
|
|
# monitor badge count on home page. It should be 7 at the start
|
|
|
|
|
open "/"
|
|
|
|
|
assert_text 'badge_count', '7'
|
|
|
|
|
|
|
|
|
|
# add todo to hidden project
|
|
|
|
|
type "todo_description", "should be hidden"
|
|
|
|
|
type "todo_project_name", "Make more money than Billy Gates"
|
|
|
|
|
type "todo_context_name", "agenda"
|
|
|
|
|
click "css=#todo-form-new-action .submit_box button"
|
|
|
|
|
|
|
|
|
|
# wait for flash to (dis)appear
|
|
|
|
|
wait_for_visible "flash"
|
|
|
|
|
|
|
|
|
|
verify_text_not_present 'should be hidden'
|
|
|
|
|
|
|
|
|
|
# badge count should still be same
|
2009-10-07 16:32:34 -04:00
|
|
|
assert_text 'badge_count', '7'
|