Merge branch 'master' of git://github.com/bsag/tracks

This commit is contained in:
Reinier Balt 2008-06-19 10:13:14 +02:00
commit 4e890524f0
633 changed files with 48024 additions and 831 deletions

View file

@ -1,8 +0,0 @@
setup :clear_tables => [:users, :preferences]
open '/'
assert_title 'exact:TRACKS::Sign up as the admin user'
type "user_login", "admin"
type "user_password", "abracadabra"
type "user_password_confirmation", "abracadabra"
click_and_wait "signup"
assert_title 'exact:TRACKS::List tasks'

View file

@ -1,9 +0,0 @@
setup :fixtures => :all
open :controller => 'login', :action => 'logout'
open :controller => 'login'
assert_title 'exact:TRACKS::Login'
type "user_login", "admin"
type "user_password", "incorrect_password"
click_and_wait "login"
assert_title 'exact:TRACKS::Login'
verify_text_present 'Login unsuccessful'

View file

@ -1,12 +0,0 @@
setup :fixtures => :all
open :controller => 'login', :action => 'logout'
open :controller => 'login'
assert_title 'exact:TRACKS::Login'
type "user_login", "admin"
type "user_password", "abracadabra"
click_and_wait "login"
assert_title 'exact:TRACKS::List tasks'
wait_for_visible "flash"
wait_for_text "flash", "Login successful: session will not expire."
#next line slows down the test unacceptably, but is useful in ensuring that the message disappears.
#wait_for_not_visible "flash"

View file

@ -1,27 +0,0 @@
setup :fixtures => :all
login :as => 'admin'
open "/notes/"
assert_text 'badge_count', '2'
# add new note
open "/projects/1"
click "css=#add_note_href"
type "css=#new_note_body", "new note"
click "add-new-note"
# wait until new note is saved
wait_for_text_not_present "new note"
wait_for_text_present "new note"
# check badge count is one more
open "/notes/"
assert_text 'badge_count', '3'
# delete note
click "css=#delete_note_1"
assert_confirmation "Are you sure that you want to delete the note '1'?"
# check badge decreased
wait_for_visible "flash"
wait_for_element_not_present "container_note_1"
assert_text 'badge_count', '2'

View file

@ -1,5 +0,0 @@
setup :fixtures => :all
login :as => 'admin'
open "/projects/1"
click_and_wait "css=#note_1 .link_to_notes"
assert_element_present "note_1"

View file

@ -1,5 +0,0 @@
setup :fixtures => :all
login :as => 'admin'
open "/notes/"
assert_element_present "note_1"
assert_element_present "note_2"

View file

@ -1,5 +0,0 @@
setup :fixtures => :all
login :as => 'admin'
open "/notes"
click "css=#toggle-notes-nav"
wait_for_element_present "css=body.notes"