mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-10 14:42:35 +01:00
Adds selenium test for #658.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@759 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
9878d5ab55
commit
7fa0fc28fc
1 changed files with 23 additions and 0 deletions
|
|
@ -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'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue