budget/test/application_system_test_case.rb
Andrew Tomaka 3c7b1c434b
Some checks failed
Ruby CI / test (pull_request) Failing after 35s
Linting
2025-06-05 23:54:53 -04:00

17 lines
428 B
Ruby

require "test_helper"
require "capybara/cuprite"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :cuprite, options: { headless: ENV["VISIBLE_SYSTEM_TESTS"].blank? }
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
end