mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 22:08:49 +01:00
Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium.
This commit is contained in:
parent
7b432a74ed
commit
2c09db45c5
602 changed files with 47788 additions and 29 deletions
|
|
@ -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'
|
||||
|
|
@ -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'
|
||||
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue