Fixing broken selenium-on-rails tests

This commit is contained in:
Eric Allen 2011-03-01 00:15:13 -08:00
parent 3ac4c5c7d5
commit a1aedfb172
8 changed files with 9 additions and 9 deletions

View file

@ -1,8 +1,8 @@
setup :fixtures => :all
login :as => 'admin'
open "/"
wait_for_element_present '//div[@id="line_todo_5"]//img[@alt="Defer 1 day"]/..'
click '//div[@id="line_todo_5"]//img[@alt="Defer 1 day"]/..'
wait_for_element_present '//div[@id="line_todo_5"]//img[@alt="Defer one day"]/..'
click '//div[@id="line_todo_5"]//img[@alt="Defer one day"]/..'
wait_for_element_not_present "todo_5"
assert_text 'badge_count', '10'
wait_for_not_visible "c5"