3 ENV.delete("http_proxy")
 
   5 ActiveSupport.on_load(:action_dispatch_system_test_case) do
 
   6   ActionDispatch::SystemTesting::Server.silence_puma = true
 
   9 class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
 
  10   include ActionMailer::TestCase::ClearTestDeliveries
 
  12   driven_by :selenium, :using => Settings.system_test_headless ? :headless_firefox : :firefox do |options|
 
  13     options.add_preference("intl.accept_languages", "en")
 
  14     options.binary = Settings.system_test_firefox_binary if Settings.system_test_firefox_binary
 
  19     osm_website_app = create(:oauth_application, :name => "OpenStreetMap Web Site", :scopes => "write_api write_notes")
 
  20     Settings.oauth_application = osm_website_app.uid
 
  32     within "form", :text => "Email Address or Username" do
 
  33       fill_in "username", :with => user.email
 
  34       fill_in "password", :with => "test"
 
  41     click_on "Logout", :match => :first
 
  45     within("#sidebar_content", &)
 
  48   def within_content_body(&)
 
  49     within("#content > .content-body", &)
 
  52   def within_content_heading(&)
 
  53     within("#content > .content-heading", &)