Click first Sign In in login_helper.

This commit is contained in:
Bryce Johnson 2016-09-28 15:47:21 +02:00
parent 673c23dd7e
commit 1fd0926082
1 changed files with 1 additions and 3 deletions

View File

@ -33,9 +33,7 @@ module LoginHelpers
fill_in "user_login", with: user.email
fill_in "user_password", with: "12345678"
check 'user_remember_me' if remember
page.within '.login-box' do
click_button "Sign in"
end
first('.login-box').click_button('Sign in')
Thread.current[:current_user] = user
end