mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-02 23:38:50 +01:00
delete selenium scripts that have cucumber equivalents
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
parent
e7c0f6c3d2
commit
7d9f241a12
23 changed files with 0 additions and 228 deletions
|
|
@ -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"
|
||||
|
|
@ -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"
|
||||
|
||||
|
|
@ -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"
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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'
|
||||
|
|
@ -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"
|
||||
|
|
@ -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"
|
||||
|
|
@ -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']"
|
||||
|
|
@ -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"
|
||||
|
|
@ -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"
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open '/'
|
||||
assert_element_present "css=#c2 #todo_2 img.unstarred_todo"
|
||||
|
|
@ -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]"
|
||||
|
|
@ -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'
|
||||
|
|
@ -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'
|
||||
|
|
@ -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'
|
||||
|
|
@ -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"
|
||||
|
|
@ -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'
|
||||
|
|
@ -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"
|
||||
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
@ -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'
|
||||
|
|
@ -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"
|
||||
|
|
@ -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]"
|
||||
Loading…
Add table
Add a link
Reference in a new issue