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:
parent
0922a7cbd6
commit
e812b715d3
4 changed files with 33 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue