diff --git a/tracks/test/selenium/project_detail/count_actions_in_hidden_project.rsel b/tracks/test/selenium/project_detail/count_actions_in_hidden_project.rsel new file mode 100644 index 00000000..f0343e4b --- /dev/null +++ b/tracks/test/selenium/project_detail/count_actions_in_hidden_project.rsel @@ -0,0 +1,23 @@ +setup :fixtures => :all +login :as => 'admin' +open '/projects/1' +assert_text 'badge_count', '2' +click 'project_state_hidden' +wait_for_attribute 'css=#project_status .active span', 'class', 'inactive_state' +wait_for_attribute 'css=#project_status .hidden span', 'class', 'active_state' +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_checked 'project_state_hidden', 'ignored' \ No newline at end of file