mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
24 lines
691 B
Text
24 lines
691 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"
|
|
|
|
type "todo_description", "add one to hidden project 2"
|
|
click "css=#todo-form-new-action .submit_box button"
|
|
wait_for_visible "flash"
|
|
|
|
wait_for_text 'badge_count', '4'
|
|
|
|
open '/projects/1'
|
|
assert_text 'badge_count', '4'
|
|
assert_text_present 'marked as hidden'
|