spec/support/features/session_helpers.rb in blacklight-8.2.2 vs spec/support/features/session_helpers.rb in blacklight-8.3.0
- old
+ new
@@ -7,23 +7,23 @@
Capybara.exact = true
visit new_user_registration_path
fill_in 'Email', with: email
fill_in 'Password', with: password
fill_in 'Password confirmation', with: password
- click_button 'Sign up'
+ click_on 'Sign up'
end
def sign_in(login = 'user1')
email = "#{login}@#{login}.com"
User.create(email: email, password: "password", password_confirmation: "password")
visit new_user_session_path
fill_in("user_email", with: email)
fill_in("user_password", with: "password")
if has_button? "Sign in"
- click_button("Sign in")
+ click_on("Sign in")
elsif has_button? "Log in"
- click_button("Log in")
+ click_on("Log in")
else
raise "Unable to find sign in button"
end
end
end