From 7d9f241a120f103430cd1490d063e2959d8b63ba Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 7 Sep 2011 22:54:22 +0200 Subject: [PATCH] delete selenium scripts that have cucumber equivalents Signed-off-by: Reinier Balt --- ...change_todo_context_to_hidden_context.rsel | 8 ------- .../change_todo_context_to_new_context.rsel | 21 ---------------- ...nge_todo_context_to_zero_item_context.rsel | 11 --------- ..._todo_with_new_action_and_new_context.rsel | 10 -------- .../create_new_todo_with_new_context.rsel | 9 ------- test/selenium/home/defer_todo.rsel | 9 ------- .../home/defer_todo_empty_context.rsel | 10 -------- .../defer_todo_with_button_empty_context.rsel | 8 ------- test/selenium/home/mark_todo_complete_1.rsel | 5 ---- test/selenium/home/mark_todo_complete_3.rsel | 5 ---- test/selenium/home/star_todo.rsel | 5 ---- .../home/verify_item_not_starred.rsel | 4 ---- .../project_detail/_add_deferred_todo.rsel | 5 ---- .../project_detail/change_project_status.rsel | 18 -------------- .../change_todos_project_to_blank.rsel | 9 ------- .../count_actions_in_hidden_project.rsel | 24 ------------------- .../project_detail/create_deferred_todo.rsel | 5 ---- test/selenium/project_detail/defer_todo.rsel | 10 -------- .../selenium/project_detail/toggle_notes.rsel | 5 ---- .../tags/change_context_in_tag_view.rsel | 17 ------------- test/selenium/tags/find_tagged.rsel | 5 ---- .../tickler/change_deferred_todo_context.rsel | 12 ---------- ...e_deferred_todo_with_existing_context.rsel | 13 ---------- 23 files changed, 228 deletions(-) delete mode 100644 test/selenium/home/change_todo_context_to_hidden_context.rsel delete mode 100644 test/selenium/home/change_todo_context_to_new_context.rsel delete mode 100644 test/selenium/home/change_todo_context_to_zero_item_context.rsel delete mode 100644 test/selenium/home/create_new_todo_with_new_action_and_new_context.rsel delete mode 100644 test/selenium/home/create_new_todo_with_new_context.rsel delete mode 100644 test/selenium/home/defer_todo.rsel delete mode 100644 test/selenium/home/defer_todo_empty_context.rsel delete mode 100644 test/selenium/home/defer_todo_with_button_empty_context.rsel delete mode 100644 test/selenium/home/mark_todo_complete_1.rsel delete mode 100644 test/selenium/home/mark_todo_complete_3.rsel delete mode 100644 test/selenium/home/star_todo.rsel delete mode 100644 test/selenium/home/verify_item_not_starred.rsel delete mode 100644 test/selenium/project_detail/_add_deferred_todo.rsel delete mode 100644 test/selenium/project_detail/change_project_status.rsel delete mode 100644 test/selenium/project_detail/change_todos_project_to_blank.rsel delete mode 100644 test/selenium/project_detail/count_actions_in_hidden_project.rsel delete mode 100644 test/selenium/project_detail/create_deferred_todo.rsel delete mode 100644 test/selenium/project_detail/defer_todo.rsel delete mode 100644 test/selenium/project_detail/toggle_notes.rsel delete mode 100644 test/selenium/tags/change_context_in_tag_view.rsel delete mode 100644 test/selenium/tags/find_tagged.rsel delete mode 100644 test/selenium/tickler/change_deferred_todo_context.rsel delete mode 100644 test/selenium/tickler/create_deferred_todo_with_existing_context.rsel diff --git a/test/selenium/home/change_todo_context_to_hidden_context.rsel b/test/selenium/home/change_todo_context_to_hidden_context.rsel deleted file mode 100644 index 3212e75f..00000000 --- a/test/selenium/home/change_todo_context_to_hidden_context.rsel +++ /dev/null @@ -1,8 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/" -click "edit_icon_todo_12" -wait_for_visible "context_name_todo_12" -type "context_name_todo_12", "someday maybe" -click "submit_todo_12" -wait_for_element_not_present "todo_12" \ No newline at end of file diff --git a/test/selenium/home/change_todo_context_to_new_context.rsel b/test/selenium/home/change_todo_context_to_new_context.rsel deleted file mode 100644 index b4de8755..00000000 --- a/test/selenium/home/change_todo_context_to_new_context.rsel +++ /dev/null @@ -1,21 +0,0 @@ -# when you change a todo to a new context, the new context must show with -# the new todo -setup :fixtures => :all -login :as => 'admin' -open "/" - -# change context of todo to new context -click "edit_icon_todo_12" -wait_for_visible "context_name_todo_12" -type "context_name_todo_12", "new context" -click "submit_todo_12" - -# check that todo is removed from old context -wait_for_element_not_present "css=#c1 #todo_12" - -# check if new context is shown and that the todo is also shown -wait_for_text_present 'new context' -# TODO: this check only looks for todo_12 but does not check if it is contained -# within the new context. -wait_for_element_not_present "#todo_12" - diff --git a/test/selenium/home/change_todo_context_to_zero_item_context.rsel b/test/selenium/home/change_todo_context_to_zero_item_context.rsel deleted file mode 100644 index 807dff68..00000000 --- a/test/selenium/home/change_todo_context_to_zero_item_context.rsel +++ /dev/null @@ -1,11 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/" -click "edit_icon_todo_12" -wait_for_visible "context_name_todo_12" -type "context_name_todo_12", "errand" -click "submit_todo_12" -wait_for_element_not_present "css=#c1 #todo_12" -wait_for_visible "c4" -wait_for_visible "css=#c4 #todo_12" -wait_for_not_visible "c4empty-nd" diff --git a/test/selenium/home/create_new_todo_with_new_action_and_new_context.rsel b/test/selenium/home/create_new_todo_with_new_action_and_new_context.rsel deleted file mode 100644 index 324b5d1a..00000000 --- a/test/selenium/home/create_new_todo_with_new_action_and_new_context.rsel +++ /dev/null @@ -1,10 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/" -assert_context_count_incremented do - type "todo_description", "tttt" - type "todo_project_name", "pppp" - type "todo_context_name", "cccc" - click "css=#todo-form-new-action .submit_box button" - assert_confirmation "New context 'cccc' will be also created. Are you sure?" -end diff --git a/test/selenium/home/create_new_todo_with_new_context.rsel b/test/selenium/home/create_new_todo_with_new_context.rsel deleted file mode 100644 index c2f2c6ed..00000000 --- a/test/selenium/home/create_new_todo_with_new_context.rsel +++ /dev/null @@ -1,9 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/" -assert_context_count_incremented do - type "todo_description", "a new action" - type "todo_context_name", "Brand new context" - click "css=#todo-form-new-action .submit_box button" - assert_confirmation "New context 'Brand new context' will be also created. Are you sure?" -end diff --git a/test/selenium/home/defer_todo.rsel b/test/selenium/home/defer_todo.rsel deleted file mode 100644 index 5bec1965..00000000 --- a/test/selenium/home/defer_todo.rsel +++ /dev/null @@ -1,9 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/" -click "edit_icon_todo_9" -wait_for_element_present "show_from_todo_9" -type "show_from_todo_9", "1/1/2030" -click "css=#submit_todo_9" -wait_for_element_not_present "todo_9" -assert_text 'badge_count', '10' diff --git a/test/selenium/home/defer_todo_empty_context.rsel b/test/selenium/home/defer_todo_empty_context.rsel deleted file mode 100644 index 8b221be5..00000000 --- a/test/selenium/home/defer_todo_empty_context.rsel +++ /dev/null @@ -1,10 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/" -click "edit_icon_todo_5" -wait_for_element_present "show_from_todo_5" -type "show_from_todo_5", "1/1/2030" -click "css=#submit_todo_5" -wait_for_element_not_present "todo_5" -assert_text 'badge_count', '10' -wait_for_not_visible "c5" diff --git a/test/selenium/home/defer_todo_with_button_empty_context.rsel b/test/selenium/home/defer_todo_with_button_empty_context.rsel deleted file mode 100644 index b826400e..00000000 --- a/test/selenium/home/defer_todo_with_button_empty_context.rsel +++ /dev/null @@ -1,8 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/" -wait_for_element_present '//div[@id="line_todo_5"]//img[@alt="Defer one day"]/..' -click '//div[@id="line_todo_5"]//img[@alt="Defer one day"]/..' -wait_for_element_not_present "todo_5" -assert_text 'badge_count', '10' -wait_for_not_visible "c5" diff --git a/test/selenium/home/mark_todo_complete_1.rsel b/test/selenium/home/mark_todo_complete_1.rsel deleted file mode 100644 index dd0d310d..00000000 --- a/test/selenium/home/mark_todo_complete_1.rsel +++ /dev/null @@ -1,5 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open '/' -click "xpath=//div[@id='c1'] //div[@id='todo_9'] //input[@class='item-checkbox']" -wait_for_element_present "xpath=//div[@id='completed_container'] //div[@id='todo_9']" diff --git a/test/selenium/home/mark_todo_complete_3.rsel b/test/selenium/home/mark_todo_complete_3.rsel deleted file mode 100644 index ae444663..00000000 --- a/test/selenium/home/mark_todo_complete_3.rsel +++ /dev/null @@ -1,5 +0,0 @@ -setup :fixtures => :all -login :as => 'jane' -open '/' -click_and_wait "xpath=//div[@id='c10'] //div[@id='todo_16'] //input[@class='item-checkbox']" -assert_title "TRACKS::Project: Attend RailsConf" diff --git a/test/selenium/home/star_todo.rsel b/test/selenium/home/star_todo.rsel deleted file mode 100644 index 00300e1d..00000000 --- a/test/selenium/home/star_todo.rsel +++ /dev/null @@ -1,5 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open '/' -click "css=#c1 #todo_9 a.star_item" -wait_for_element_present "css=#c1 #todo_9 img.starred_todo" diff --git a/test/selenium/home/verify_item_not_starred.rsel b/test/selenium/home/verify_item_not_starred.rsel deleted file mode 100644 index 5358a3d9..00000000 --- a/test/selenium/home/verify_item_not_starred.rsel +++ /dev/null @@ -1,4 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open '/' -assert_element_present "css=#c2 #todo_2 img.unstarred_todo" diff --git a/test/selenium/project_detail/_add_deferred_todo.rsel b/test/selenium/project_detail/_add_deferred_todo.rsel deleted file mode 100644 index 2e798195..00000000 --- a/test/selenium/project_detail/_add_deferred_todo.rsel +++ /dev/null @@ -1,5 +0,0 @@ -type "todo_description", "choose era" -type "todo_show_from", "1/1/2030" -click "css=#todo-form-new-action .submit_box button" -wait_for_element_present "css=div#tickler div.item-container" -wait_for_element_present "css=div#tickler div.item-container a[title=01/01/2030]" diff --git a/test/selenium/project_detail/change_project_status.rsel b/test/selenium/project_detail/change_project_status.rsel deleted file mode 100644 index 799a6ac9..00000000 --- a/test/selenium/project_detail/change_project_status.rsel +++ /dev/null @@ -1,18 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open '/projects/1' -click 'css=.project_settings a' -wait_for_visible "project[default_context_name]" - -assert_checked 'project_state_active' -assert_text_present 'This project is active' -assert_text 'badge_count', '2' -click 'project_state_hidden' -click 'css=.positive' -wait_for_text_present 'marked as hidden' -assert_text 'badge_count', '2' -open '/projects/1' -assert_text 'badge_count', '2' -click 'css=.project_settings a' -wait_for_visible 'project_state_hidden' -assert_checked 'project_state_hidden' diff --git a/test/selenium/project_detail/change_todos_project_to_blank.rsel b/test/selenium/project_detail/change_todos_project_to_blank.rsel deleted file mode 100644 index e9429d20..00000000 --- a/test/selenium/project_detail/change_todos_project_to_blank.rsel +++ /dev/null @@ -1,9 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/projects/1" -click "edit_icon_todo_5" -wait_for_element_present "show_from_todo_5" -type "project_name_todo_5", "" -click "css=#submit_todo_5" -wait_for_element_not_present "todo_5" -assert_text 'badge_count', '1' \ No newline at end of file diff --git a/test/selenium/project_detail/count_actions_in_hidden_project.rsel b/test/selenium/project_detail/count_actions_in_hidden_project.rsel deleted file mode 100644 index 3f448a4b..00000000 --- a/test/selenium/project_detail/count_actions_in_hidden_project.rsel +++ /dev/null @@ -1,24 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open '/projects/1' -assert_text 'badge_count', '2' -click 'css=.project_settings a' -wait_for_visible "project[default_context_name]" -click 'project_state_hidden' -click 'css=.positive' -wait_for_text_present 'marked as hidden' -assert_text 'badge_count', '2' - -type "todo_description", "add one to hidden project 1" -click "css=#todo-form-new-action .submit_box button" -wait_for_visible "flash" - -type "todo_description", "add one to hidden project 2" -click "css=#todo-form-new-action .submit_box button" -wait_for_visible "flash" - -wait_for_text 'badge_count', '4' - -open '/projects/1' -assert_text 'badge_count', '4' -assert_text_present 'marked as hidden' diff --git a/test/selenium/project_detail/create_deferred_todo.rsel b/test/selenium/project_detail/create_deferred_todo.rsel deleted file mode 100644 index 316d8b3d..00000000 --- a/test/selenium/project_detail/create_deferred_todo.rsel +++ /dev/null @@ -1,5 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/projects/2" -include_partial 'project_detail/add_deferred_todo' -assert_not_visible "tickler-empty-nd" \ No newline at end of file diff --git a/test/selenium/project_detail/defer_todo.rsel b/test/selenium/project_detail/defer_todo.rsel deleted file mode 100644 index 56b98336..00000000 --- a/test/selenium/project_detail/defer_todo.rsel +++ /dev/null @@ -1,10 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/projects/1" -click "edit_icon_todo_5" -wait_for_element_present "show_from_todo_5" -type "show_from_todo_5", "1/1/2030" -click "css=#submit_todo_5" -wait_for_element_present "xpath=//div[@id='tickler'] //div[@id='todo_5']" -assert_not_visible "tickler-empty-nd" -assert_text 'badge_count', '1' diff --git a/test/selenium/project_detail/toggle_notes.rsel b/test/selenium/project_detail/toggle_notes.rsel deleted file mode 100644 index 0ae47154..00000000 --- a/test/selenium/project_detail/toggle_notes.rsel +++ /dev/null @@ -1,5 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/projects/1" -click "css=#toggle-notes-nav" -wait_for_element_present "notes_todo_6" diff --git a/test/selenium/tags/change_context_in_tag_view.rsel b/test/selenium/tags/change_context_in_tag_view.rsel deleted file mode 100644 index 74bf8b85..00000000 --- a/test/selenium/tags/change_context_in_tag_view.rsel +++ /dev/null @@ -1,17 +0,0 @@ -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" - - diff --git a/test/selenium/tags/find_tagged.rsel b/test/selenium/tags/find_tagged.rsel deleted file mode 100644 index 0afe8225..00000000 --- a/test/selenium/tags/find_tagged.rsel +++ /dev/null @@ -1,5 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/todos/tag/foo" -wait_for_element_present "xpath=//div[@id='c1'] //h2" -wait_for_text 'badge_count', '2' \ No newline at end of file diff --git a/test/selenium/tickler/change_deferred_todo_context.rsel b/test/selenium/tickler/change_deferred_todo_context.rsel deleted file mode 100644 index 03e978ce..00000000 --- a/test/selenium/tickler/change_deferred_todo_context.rsel +++ /dev/null @@ -1,12 +0,0 @@ -setup :fixtures => :all -login :as => 'admin' -open "/tickler" -click "edit_icon_todo_15" -wait_for_visible "context_name_todo_15" -type "context_name_todo_15", "lab" -click "submit_todo_15" -wait_for_element_not_present "css=#c6 #todo_15" -wait_for_visible "c5" -wait_for_visible "css=#c5 #todo_15" -wait_for_not_visible "c5empty-nd" -wait_for_not_visible "c6" diff --git a/test/selenium/tickler/create_deferred_todo_with_existing_context.rsel b/test/selenium/tickler/create_deferred_todo_with_existing_context.rsel deleted file mode 100644 index 79638a49..00000000 --- a/test/selenium/tickler/create_deferred_todo_with_existing_context.rsel +++ /dev/null @@ -1,13 +0,0 @@ -setup :fixtures => [:users, :preferences, :contexts, :projects], :clear_tables => [:todos] -login :as => 'admin' -open "/tickler" -assert_context_count_incremented do - type "todo_description", "a new action" - type "todo_context_name", "errands" - type "todo_project_name", "None" - type "todo_show_from", "1/1/2030" - click "css=#todo-form-new-action .submit_box button" - assert_confirmation "New context 'errands' will be also created. Are you sure?" -end -wait_for_not_visible "tickler-empty-nd" -wait_for_element_present "css=div.item-container a[title=01/01/2030]"