mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 01:00:13 +01:00
fix selenium tests for handle the new confirmation on adding new contexts
This commit is contained in:
parent
932639ee6a
commit
494cb11903
5 changed files with 8 additions and 3 deletions
|
|
@ -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"
|
||||||
end
|
assert_confirmation "New context \"Brand new context\" will be also created. Are you sure?"
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
end
|
assert_confirmation "New context \"cccc\" will be also created. Are you sure?"
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
end
|
assert_confirmation "New context \"Brand new context\" will be also created. Are you sure?"
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -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']"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue