forked from fixin.me/fixin.me
16 lines
567 B
Ruby
16 lines
567 B
Ruby
require "test_helper"
|
|
|
|
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
|
# NOTE: remove when capabilities no longer used by Rails
|
|
Selenium::WebDriver.logger.ignore(:capabilities)
|
|
|
|
driven_by :selenium, using: :headless_firefox, screen_size: [1600, 900]
|
|
|
|
def sign_in(user: users.sample, password: randomize_user_password!(user))
|
|
visit new_user_session_url
|
|
fill_in User.human_attribute_name(:email).capitalize, with: user.email
|
|
fill_in User.human_attribute_name(:password).capitalize, with: password
|
|
click_on t(:sign_in)
|
|
end
|
|
end
|