summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2016-09-28 15:47:21 +0200
committerBryce Johnson <bryce@gitlab.com>2016-10-15 08:28:52 +0200
commit1fd09260826413da928363c3199d4dfbb770d2c3 (patch)
treec9a9efbf0230b1a7d26c5d91d66cb855076765d9
parent673c23dd7ebef7d6c370a0d0d5c024c1c042261c (diff)
downloadgitlab-ce-1fd09260826413da928363c3199d4dfbb770d2c3.tar.gz
Click first Sign In in login_helper.
-rw-r--r--spec/support/login_helpers.rb4
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