mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-10 17:34:22 +01:00
Updated to svn tags/tracks-1.6
This commit is contained in:
parent
103fcb8049
commit
02496f2d44
2274 changed files with 0 additions and 0 deletions
5
test/selenium/project_detail/_add_deferred_todo.rsel
Normal file
5
test/selenium/project_detail/_add_deferred_todo.rsel
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
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 "xpath=//div[@id='tickler'] //div[@class='item-container']"
|
||||
wait_for_element_present "xpath=//div[@id='tickler'] //div[@class='item-container'] //a[@title='01/01/2030']"
|
||||
20
test/selenium/project_detail/activate_deferred_todo.rsel
Normal file
20
test/selenium/project_detail/activate_deferred_todo.rsel
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
|
||||
#first, defer a todo
|
||||
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']"
|
||||
|
||||
#now activate the other deferred one
|
||||
open "/projects/1"
|
||||
click "edit_icon_todo_15"
|
||||
wait_for_element_present "show_from_todo_15"
|
||||
type "show_from_todo_15", ""
|
||||
click "css=#submit_todo_15"
|
||||
wait_for_element_present "xpath=//div[@id='p1'] //div[@id='todo_15']"
|
||||
assert_not_visible "tickler-empty-nd"
|
||||
assert_text 'badge_count', '2'
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/projects/1"
|
||||
click "edit_icon_todo_15"
|
||||
wait_for_element_present "show_from_todo_15"
|
||||
type "show_from_todo_15", ""
|
||||
click "css=#submit_todo_15"
|
||||
wait_for_element_present "xpath=//div[@id='p1'] //div[@id='todo_15']"
|
||||
wait_for_visible "tickler-empty-nd"
|
||||
12
test/selenium/project_detail/add_todo.rsel
Normal file
12
test/selenium/project_detail/add_todo.rsel
Normal file
|
|
@ -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'
|
||||
24
test/selenium/project_detail/change_default_context.rsel
Normal file
24
test/selenium/project_detail/change_default_context.rsel
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/projects/2"
|
||||
|
||||
# change default context
|
||||
type "project[default_context_name]", "errand"
|
||||
click "commit"
|
||||
|
||||
wait_for_visible "flash"
|
||||
|
||||
# add actions
|
||||
type "todo_description", "test1"
|
||||
click "css=#todo-form-new-action .submit_box button"
|
||||
|
||||
wait_for_visible "flash"
|
||||
wait_for_not_visible "flash"
|
||||
|
||||
type "todo_description", "test2"
|
||||
click "css=#todo-form-new-action .submit_box button"
|
||||
wait_for_visible "flash"
|
||||
|
||||
# check that context errand now contains 2 todos
|
||||
open "/contexts/4"
|
||||
assert_text "badge_count", "2"
|
||||
14
test/selenium/project_detail/change_project_status.rsel
Normal file
14
test/selenium/project_detail/change_project_status.rsel
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open '/projects/1'
|
||||
assert_checked 'project_state_active', 'ignored'
|
||||
assert_attribute 'css=#project_status .active span', 'class', 'active_state'
|
||||
assert_attribute 'css=#project_status .hidden span', 'class', 'inactive_state'
|
||||
assert_text 'badge_count', '2'
|
||||
click 'project_state_hidden'
|
||||
wait_for_attribute 'css=#project_status .active span', 'class', 'inactive_state'
|
||||
wait_for_attribute 'css=#project_status .hidden span', 'class', 'active_state'
|
||||
assert_text 'badge_count', '2'
|
||||
open '/projects/1'
|
||||
assert_text 'badge_count', '2'
|
||||
assert_checked 'project_state_hidden', 'ignored'
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
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'
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open '/projects/1'
|
||||
assert_text 'badge_count', '2'
|
||||
click 'project_state_hidden'
|
||||
wait_for_attribute 'css=#project_status .active span', 'class', 'inactive_state'
|
||||
wait_for_attribute 'css=#project_status .hidden span', 'class', 'active_state'
|
||||
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"
|
||||
wait_for_not_visible "flash"
|
||||
|
||||
type "todo_description", "add one to hidden project 2"
|
||||
click "css=#todo-form-new-action .submit_box button"
|
||||
wait_for_visible "flash"
|
||||
|
||||
assert_text 'badge_count', '4'
|
||||
|
||||
open '/projects/1'
|
||||
assert_text 'badge_count', '4'
|
||||
assert_checked 'project_state_hidden', 'ignored'
|
||||
5
test/selenium/project_detail/create_deferred_todo.rsel
Normal file
5
test/selenium/project_detail/create_deferred_todo.rsel
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/projects/2"
|
||||
include_partial 'project_detail/add_deferred_todo'
|
||||
assert_not_visible "tickler-empty-nd"
|
||||
10
test/selenium/project_detail/defer_todo.rsel
Normal file
10
test/selenium/project_detail/defer_todo.rsel
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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'
|
||||
10
test/selenium/project_detail/in_place_edit_name.rsel
Normal file
10
test/selenium/project_detail/in_place_edit_name.rsel
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/projects/1"
|
||||
click "project_name_in_place_editor"
|
||||
wait_for_element_present "css=#project_name_in_place_editor-inplaceeditor input.editor_field"
|
||||
type "css=#project_name_in_place_editor-inplaceeditor input.editor_field", "Test Foo"
|
||||
click "css=#project_name_in_place_editor-inplaceeditor input.editor_ok_button"
|
||||
wait_for_text "project_name_in_place_editor", "Test Foo"
|
||||
open "/projects/1"
|
||||
wait_for_text "project_name_in_place_editor", "Test Foo"
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/projects/1"
|
||||
include_partial 'project_detail/add_deferred_todo'
|
||||
click "xpath=//div[@id='tickler'] //div[@id='todo_15'] //input[@class='item-checkbox']"
|
||||
wait_for_element_present "xpath=//div[@id='completed'] //div[@id='todo_15']"
|
||||
assert_not_visible "tickler-empty-nd"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/projects/1"
|
||||
click "xpath=//div[@id='tickler'] //div[@id='todo_15'] //input[@class='item-checkbox']"
|
||||
wait_for_visible "tickler-empty-nd"
|
||||
5
test/selenium/project_detail/toggle_notes.rsel
Normal file
5
test/selenium/project_detail/toggle_notes.rsel
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/projects/1"
|
||||
click "css=#toggle-notes-nav"
|
||||
wait_for_element_present "notes_todo_6"
|
||||
Loading…
Add table
Add a link
Reference in a new issue