mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
adds test for changing context on a todo in tag view. Resolves #762
This commit is contained in:
parent
dce58f41f8
commit
cc1c629018
1 changed files with 17 additions and 0 deletions
17
test/selenium/tags/change_context_in_tag_view.rsel
Normal file
17
test/selenium/tags/change_context_in_tag_view.rsel
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
setup :fixtures => :all
|
||||||
|
login :as => 'admin'
|
||||||
|
open "/todos/tag/foo"
|
||||||
|
wait_for_element_present "xpath=//div[@id='c1'] //h2"
|
||||||
|
|
||||||
|
# change context name
|
||||||
|
click "edit_icon_todo_1"
|
||||||
|
wait_for_element_present "submit_todo_1"
|
||||||
|
type "//input[@name='context_name']", "call"
|
||||||
|
click "//button[@id='submit_todo_1']"
|
||||||
|
wait_for_visible "flash"
|
||||||
|
|
||||||
|
# check context agenda is gone
|
||||||
|
wait_for_not_visible "c1"
|
||||||
|
verify_text_present "Call Bill Gates to find out how much he makes per day"
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue