fixed cuke for new login form

pull/817/head
Christian Ratz 11 years ago
parent c40b22fa3f
commit 90f6537ec5
  1. 8
      features/support/login_steps.rb

@ -32,9 +32,11 @@ module LoginSteps
def login(login, password)
# visit '/logout' # uncomment me if needed
visit '/login'
fill_in User.human_attribute_name(:login)+":", :with => login
fill_in 'Password:', :with => password
click_button 'Login »'
within('#login-form') do
fill_in User.human_attribute_name(:login)+":", :with => login
fill_in 'Password:', :with => password
click_button 'Login'
end
end
end

Loading…
Cancel
Save