Merge branch 'main' into update-dependencies-20250605

This commit is contained in:
Andrew Tomaka 2025-06-06 00:04:26 -04:00
commit 9f36dbe87d
3 changed files with 15 additions and 6 deletions

View file

@ -61,7 +61,7 @@ end
group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
gem "selenium-webdriver"
gem "cuprite"
end
gem "tailwindcss-rails", "~> 3.3.1"

View file

@ -128,6 +128,9 @@ GEM
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
crass (1.0.6)
cuprite (0.17)
capybara (~> 3.0)
ferrum (~> 0.17.0)
date (3.4.1)
debug (1.10.0)
irb (~> 1.10)
@ -137,6 +140,12 @@ GEM
erubi (1.13.1)
et-orbi (1.2.11)
tzinfo
ferrum (0.17.1)
addressable (~> 2.5)
base64 (~> 0.2)
concurrent-ruby (~> 1.1)
webrick (~> 1.7)
websocket-driver (~> 0.7)
fugit (1.11.1)
et-orbi (~> 1, >= 1.2.11)
raabro (~> 1.4)
@ -263,7 +272,7 @@ GEM
rubocop-performance (>= 1.24)
rubocop-rails (>= 2.30)
ruby-progressbar (1.13.0)
rubyzip (2.4.1)
rubyzip (2.3.2)
securerandom (0.4.1)
selenium-webdriver (4.33.0)
base64 (~> 0.2)
@ -316,6 +325,7 @@ GEM
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
webrick (1.9.1)
websocket (1.2.11)
websocket-driver (0.8.0)
base64
@ -336,6 +346,7 @@ DEPENDENCIES
bootsnap
brakeman
capybara
cuprite
debug
importmap-rails
jbuilder
@ -343,7 +354,6 @@ DEPENDENCIES
puma (>= 5.0)
rails!
rubocop-rails-omakase
selenium-webdriver
solid_cable
solid_cache
solid_queue

View file

@ -1,9 +1,8 @@
require "test_helper"
require "capybara/cuprite"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium,
using: ENV["VISIBLE_SYSTEM_TESTS"].present? ? :chrome : :headless_chrome,
screen_size: [ 1400, 1400 ]
driven_by :cuprite, options: { headless: ENV["VISIBLE_SYSTEM_TESTS"].blank? }
def login(email, password = "secret")
visit new_session_url