fix selenium tests for handle the new confirmation on adding new contexts

This commit is contained in:
Reinier Balt 2009-02-07 22:26:50 +01:00
parent 932639ee6a
commit 494cb11903
5 changed files with 8 additions and 3 deletions

View file

@ -5,4 +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?"
end end

View file

@ -6,4 +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?"
end end

View file

@ -5,4 +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?"
end end

View file

@ -7,6 +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?"
end end
wait_for_not_visible "tickler-empty-nd" 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 "xpath=//div[@class='item-container'] //a[@title='01/01/2030']"

View file

@ -6,4 +6,5 @@ assert_context_count_incremented do
type "todo_context_name", "Brand new context" type "todo_context_name", "Brand new context"
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 \"Brand new context\" will be also created. Are you sure?"
end end