From cc1c629018da9ea8f5f02d29515421fc340f19bb Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 3 Dec 2008 22:16:34 +0100 Subject: [PATCH] adds test for changing context on a todo in tag view. Resolves #762 --- .../tags/change_context_in_tag_view.rsel | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/selenium/tags/change_context_in_tag_view.rsel diff --git a/test/selenium/tags/change_context_in_tag_view.rsel b/test/selenium/tags/change_context_in_tag_view.rsel new file mode 100644 index 00000000..74bf8b85 --- /dev/null +++ b/test/selenium/tags/change_context_in_tag_view.rsel @@ -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" + +