Add login & user tests
All checks were successful
CI / scan_ruby (push) Successful in 15s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 35s

This commit is contained in:
sto
2025-03-27 10:26:03 +01:00
parent 7023600cd1
commit 26b8064553
7 changed files with 123 additions and 8 deletions

12
spec/support/helpers.rb Normal file
View File

@@ -0,0 +1,12 @@
module Helpers
def login(user)
visit '/'
fill_in "Email address", with: user.email_address
fill_in "Password", with: user.password
click_button "Sign in"
end
end
RSpec.configure do |c|
c.include Helpers
end