ALL SELENIUM TESTS PASSING!!

Caught a couple of things that I had to fix plus a handful of broken tests. This is the first time in forever that we have a fully successful selenium suite.
This commit is contained in:
Eric Allen 2009-10-13 22:34:37 -04:00
parent e32b23c615
commit 96f510abd4
10 changed files with 39 additions and 32 deletions

View file

@ -3,11 +3,11 @@ login :as => 'admin'
open "/projects/1"
# change project name
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"
click "project_name"
wait_for_element_present "css=#project_name form input"
type "css=#project_name form input", "Test Foo"
click "css=#project_name form button"
wait_for_text "project_name", "Test Foo"
# check that the default project name is changed too
assert_value "todo_project_name", "Test Foo"
wait_for_value "todo_project_name", "Test Foo"

View file

@ -2,9 +2,11 @@ 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'
wait_for_attribute 'css=#project_status .active span', 'class', 'inactive_state'
wait_for_attribute 'css=#project_status .hidden span', 'class', 'active_state'
click 'css=.positive'
wait_for_text_present 'marked as hidden'
assert_text 'badge_count', '2'
type "todo_description", "add one to hidden project 1"
@ -20,4 +22,4 @@ assert_text 'badge_count', '4'
open '/projects/1'
assert_text 'badge_count', '4'
assert_checked 'project_state_hidden'
assert_text_present 'marked as hidden'

View file

@ -1,10 +1,13 @@
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"
click "project_name"
wait_for_element_present "css=#project_name form input"
type "css=#project_name form input", "Test Foo"
click "css=#project_name form button"
wait_for_text "project_name", "Test Foo"
open "/projects/1"
wait_for_text "project_name_in_place_editor", "Test Foo"
wait_for_text "project_name", "Test Foo"

View file

@ -3,7 +3,7 @@ login :as => 'admin'
open "/todos/tag/foo"
assert_text 'badge_count', '2'
click "css=#delete_icon_2"
click "css=#ultodo_2 img[alt='Delete']"
assert_confirmation "Are you sure that you want to delete the action 'Call dinosaur exterminator'?"
wait_for_element_not_present "todo_2"

View file

@ -1,6 +1,6 @@
setup :fixtures => [:users, :projects, :contexts, :todos, :notes]
login :as => 'admin'
open "/"
click_and_wait "xpath=//ul[@id='navlist'] //a[@title='See your starred actions']"
click_and_wait "xpath=//a[@title='See your starred actions']"
assert_title "exact:TRACKS::Tagged with 'starred'"
verify_text_present "Currently there are no incomplete actions with the tag 'starred'"