tabletop-companion/test/application_system_test_cas...

17 lines
480 B
Ruby
Raw Normal View History

2024-05-26 10:45:10 +00:00
# frozen_string_literal: true
2024-04-13 10:22:40 +00:00
require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
2024-04-21 12:23:37 +00:00
driven_by :selenium,
using: :headless_firefox,
screen_size: [ 1400, 1400 ]
def system_sign_in(user, password: "password")
visit new_session_url
fill_in attr_name(User, :username), with: users(:trevor).username
fill_in attr_name(User, :password), with: "password"
click_button I18n.t("sessions.new.log_in")
end
2024-04-13 10:22:40 +00:00
end