Commit 1fd09260 authored by Bryce Johnson's avatar Bryce Johnson

Click first Sign In in login_helper.

parent 673c23dd
...@@ -33,9 +33,7 @@ module LoginHelpers ...@@ -33,9 +33,7 @@ module LoginHelpers
fill_in "user_login", with: user.email fill_in "user_login", with: user.email
fill_in "user_password", with: "12345678" fill_in "user_password", with: "12345678"
check 'user_remember_me' if remember check 'user_remember_me' if remember
page.within '.login-box' do first('.login-box').click_button('Sign in')
click_button "Sign in"
end
Thread.current[:current_user] = user Thread.current[:current_user] = user
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment