adds test for changing context on a todo in tag view. Resolves #762

This commit is contained in:
Reinier Balt 2008-12-03 22:16:34 +01:00
parent dce58f41f8
commit cc1c629018

View 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"