mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 09:10:12 +01:00
Fixing broken selenium-on-rails tests
This commit is contained in:
parent
3ac4c5c7d5
commit
a1aedfb172
8 changed files with 9 additions and 9 deletions
|
|
@ -8,4 +8,4 @@ click "submit_todo_12"
|
||||||
wait_for_element_not_present "css=#c1 #todo_12"
|
wait_for_element_not_present "css=#c1 #todo_12"
|
||||||
wait_for_visible "c4"
|
wait_for_visible "c4"
|
||||||
wait_for_visible "css=#c4 #todo_12"
|
wait_for_visible "css=#c4 #todo_12"
|
||||||
assert_not_visible "c4empty-nd"
|
wait_for_not_visible "c4empty-nd"
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,5 @@ assert_context_count_incremented do
|
||||||
type "todo_description", "a new action"
|
type "todo_description", "a new action"
|
||||||
type "todo_context_name", "Brand new context"
|
type "todo_context_name", "Brand new context"
|
||||||
click "css=#todo-form-new-action .submit_box button"
|
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
|
end
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@ assert_context_count_incremented do
|
||||||
type "todo_project_name", "pppp"
|
type "todo_project_name", "pppp"
|
||||||
type "todo_context_name", "cccc"
|
type "todo_context_name", "cccc"
|
||||||
click "css=#todo-form-new-action .submit_box button"
|
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
|
end
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,5 @@ assert_context_count_incremented do
|
||||||
type "todo_description", "a new action"
|
type "todo_description", "a new action"
|
||||||
type "todo_context_name", "Brand new context"
|
type "todo_context_name", "Brand new context"
|
||||||
click "css=#todo-form-new-action .submit_box button"
|
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
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
setup :fixtures => :all
|
setup :fixtures => :all
|
||||||
login :as => 'admin'
|
login :as => 'admin'
|
||||||
open "/"
|
open "/"
|
||||||
wait_for_element_present '//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 1 day"]/..'
|
click '//div[@id="line_todo_5"]//img[@alt="Defer one day"]/..'
|
||||||
wait_for_element_not_present "todo_5"
|
wait_for_element_not_present "todo_5"
|
||||||
assert_text 'badge_count', '10'
|
assert_text 'badge_count', '10'
|
||||||
wait_for_not_visible "c5"
|
wait_for_not_visible "c5"
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ login :as => 'admin'
|
||||||
open '/'
|
open '/'
|
||||||
click "xpath=//div[@id='completed_container'] //div[@id='todo_3'] //input[@class='item-checkbox']"
|
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']"
|
wait_for_element_present "xpath=//div[@id='c4'] //div[@id='todo_3']"
|
||||||
assert_not_visible "c4empty-nd"
|
wait_for_not_visible "c4empty-nd"
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,5 @@ click "submit_todo_15"
|
||||||
wait_for_element_not_present "css=#c6 #todo_15"
|
wait_for_element_not_present "css=#c6 #todo_15"
|
||||||
wait_for_visible "c5"
|
wait_for_visible "c5"
|
||||||
wait_for_visible "css=#c5 #todo_15"
|
wait_for_visible "css=#c5 #todo_15"
|
||||||
assert_not_visible "c5empty-nd"
|
wait_for_not_visible "c5empty-nd"
|
||||||
wait_for_not_visible "c6"
|
wait_for_not_visible "c6"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ assert_context_count_incremented do
|
||||||
type "todo_project_name", "None"
|
type "todo_project_name", "None"
|
||||||
type "todo_show_from", "1/1/2030"
|
type "todo_show_from", "1/1/2030"
|
||||||
click "css=#todo-form-new-action .submit_box button"
|
click "css=#todo-form-new-action .submit_box button"
|
||||||
assert_confirmation "New context \"errands\" will be also created. Are you sure?"
|
assert_confirmation "New context 'errands' will be also created. Are you sure?"
|
||||||
end
|
end
|
||||||
wait_for_not_visible "tickler-empty-nd"
|
wait_for_not_visible "tickler-empty-nd"
|
||||||
wait_for_element_present "css=div.item-container a[title=01/01/2030]"
|
wait_for_element_present "css=div.item-container a[title=01/01/2030]"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue