]> git.openstreetmap.org Git - rails.git/blob - test/application_system_test_case.rb
Merge remote-tracking branch 'upstream/pull/4436'
[rails.git] / test / application_system_test_case.rb
1 require "test_helper"
2
3 ENV.delete("http_proxy")
4
5 ActiveSupport.on_load(:action_dispatch_system_test_case) do
6   ActionDispatch::SystemTesting::Server.silence_puma = true
7 end
8
9 class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
10   driven_by :selenium, :using => :headless_firefox do |options|
11     options.add_preference("intl.accept_languages", "en")
12   end
13
14   def before_setup
15     super
16     osm_website_app = create(:oauth_application, :name => "OpenStreetMap Web Site", :scopes => "write_api write_notes")
17     Settings.oauth_application = osm_website_app.uid
18   end
19
20   def after_teardown
21     Settings.reload!
22     super
23   end
24 end