diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-09-28 16:47:21 +0300 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-15 09:28:52 +0300 |
commit | 1fd09260826413da928363c3199d4dfbb770d2c3 (patch) | |
tree | c9a9efbf0230b1a7d26c5d91d66cb855076765d9 /spec | |
parent | 673c23dd7ebef7d6c370a0d0d5c024c1c042261c (diff) |
Click first Sign In in login_helper.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/login_helpers.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index 3e90c95918c..ea9edc85248 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -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 |