Merge pull request #5691 from tomhughes/system-test-clear-deliveries

Clear test deliveries before and after system tests
This commit is contained in:
Andy Allan 2025-02-16 14:50:04 +00:00 committed by GitHub
commit 0c0b68664e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,8 @@ ActiveSupport.on_load(:action_dispatch_system_test_case) do
end
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
include ActionMailer::TestCase::ClearTestDeliveries
driven_by :selenium, :using => Settings.system_test_headless ? :headless_firefox : :firefox do |options|
options.add_preference("intl.accept_languages", "en")
options.binary = Settings.system_test_firefox_binary if Settings.system_test_firefox_binary