From 179205dd9e8682148ab892c5607fac871cda8d1c Mon Sep 17 00:00:00 2001 From: lrbalt Date: Fri, 16 May 2008 14:09:57 +0000 Subject: [PATCH] Create selenium test for #705 git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@849 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/test/selenium/project_detail/add_todo.rsel | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tracks/test/selenium/project_detail/add_todo.rsel diff --git a/tracks/test/selenium/project_detail/add_todo.rsel b/tracks/test/selenium/project_detail/add_todo.rsel new file mode 100644 index 00000000..66c12720 --- /dev/null +++ b/tracks/test/selenium/project_detail/add_todo.rsel @@ -0,0 +1,12 @@ +setup :fixtures => :all +login :as => 'admin' +open "/projects/1" + +# add new todo +type "todo_description", "a brand new todo" +click "css=#todo-form-new-action .submit_box button" +wait_for_element_present "xpath=//div[@id='p1'] //div[@class='item-container']" + +# wait for flash to mention that todo was added and verify existence of new todo +wait_for_visible "flash" +verify_text_present 'a brand new todo'