Prefer headless browser for system tests
continuous-integration/drone/push Build is passing Details

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
1 changed files with 3 additions and 1 deletions

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