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

@ -8,4 +8,4 @@ click "submit_todo_12"
wait_for_element_not_present "css=#c1 #todo_12"
wait_for_visible "c4"
wait_for_visible "css=#c4 #todo_12"
assert_not_visible "c4empty-nd"
wait_for_not_visible "c4empty-nd"

View file

@ -5,5 +5,5 @@ assert_context_count_incremented do
type "todo_description", "a new action"
type "todo_context_name", "Brand new context"
click "css=#todo-form-new-action .submit_box button"
assert_confirmation "New context \"Brand new context\" will be also created. Are you sure?"
assert_confirmation "New context 'Brand new context' will be also created. Are you sure?"
end

View file

@ -6,5 +6,5 @@ assert_context_count_incremented do
type "todo_project_name", "pppp"
type "todo_context_name", "cccc"
click "css=#todo-form-new-action .submit_box button"
assert_confirmation "New context \"cccc\" will be also created. Are you sure?"
assert_confirmation "New context 'cccc' will be also created. Are you sure?"
end

View file

@ -5,5 +5,5 @@ assert_context_count_incremented do
type "todo_description", "a new action"
type "todo_context_name", "Brand new context"
click "css=#todo-form-new-action .submit_box button"
assert_confirmation "New context \"Brand new context\" will be also created. Are you sure?"
assert_confirmation "New context 'Brand new context' will be also created. Are you sure?"
end

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"

View file

@ -3,4 +3,4 @@ login :as => 'admin'
open '/'
click "xpath=//div[@id='completed_container'] //div[@id='todo_3'] //input[@class='item-checkbox']"
wait_for_element_present "xpath=//div[@id='c4'] //div[@id='todo_3']"
assert_not_visible "c4empty-nd"
wait_for_not_visible "c4empty-nd"