1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

First pass at a system test (#305)

This commit is contained in:
Dwight Watson 2024-02-06 08:19:31 +11:00 committed by GitHub
parent 0922a7cbd6
commit e812b715d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 3 deletions

View file

@ -2,4 +2,16 @@ require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]
private
def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end