Fixed some failing Selenium selectors

This commit is contained in:
Eric Allen 2009-11-25 15:45:25 -05:00
parent 6d7f10d912
commit c6249bad0c
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
type "todo_description", "choose era"
type "todo_show_from", "1/1/2030"
click "css=#todo-form-new-action .submit_box button"
wait_for_element_present "xpath=//div[@id='tickler'] //div[@class='item-container']"
wait_for_element_present "xpath=//div[@id='tickler'] //div[@class='item-container'] //a[@title='01/01/2030']"
wait_for_element_present "css=div#tickler div.item-container"
wait_for_element_present "css=div#tickler div.item-container a[title=01/01/2030]"

View file

@ -5,7 +5,7 @@ open "/projects/1"
# add new todo
type "todo_description", "a brand new todo"
click "css=#todo-form-new-action .submit_box button"
wait_for_element_present "xpath=//div[@id='p1items'] //div[@class='item-container']"
wait_for_element_present "css=div#p1items div.item-container"
# wait for flash to mention that todo was added and verify existence of new todo
wait_for_visible "flash"

View file

@ -10,4 +10,4 @@ assert_context_count_incremented do
assert_confirmation "New context \"errands\" will be also created. Are you sure?"
end
wait_for_not_visible "tickler-empty-nd"
wait_for_element_present "xpath=//div[@class='item-container'] //a[@title='01/01/2030']"
wait_for_element_present "css=div.item-container a[title=01/01/2030]"