Prefer headless browser for system tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Andrew Tomaka 2023-12-07 20:26:18 -05:00
parent c638ecca58
commit 7d1559c2fd
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -1,5 +1,7 @@
require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
driven_by :selenium,
using: ENV["VISIBLE_SYSTEM_TESTS"].present? ? :chrome : :headless_chrome,
screen_size: [1400, 1400]
end