2022-11-20 15:06:27 -05:00
|
|
|
require "test_helper"
|
|
|
|
|
|
|
|
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
2023-12-07 20:26:18 -05:00
|
|
|
driven_by :selenium,
|
|
|
|
using: ENV["VISIBLE_SYSTEM_TESTS"].present? ? :chrome : :headless_chrome,
|
2024-06-21 23:35:36 -04:00
|
|
|
screen_size: [ 1400, 1400 ]
|
2024-08-16 19:59:29 -04:00
|
|
|
|
|
|
|
def login(email, password = "secret")
|
|
|
|
visit new_session_url
|
|
|
|
|
|
|
|
fill_in "Email", with: email
|
|
|
|
fill_in "Password", with: "secret"
|
|
|
|
|
|
|
|
click_on "Create Session"
|
|
|
|
|
|
|
|
assert_text "Session was successfully created"
|
|
|
|
end
|
2022-11-20 15:06:27 -05:00
|
|
|
end
|