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 driven_by :selenium, :using => :headless_firefox do |options|
11 options.add_preference("intl.accept_languages", "en")
12 options.binary = Settings.system_test_firefox_binary if Settings.system_test_firefox_binary
17 osm_website_app = create(:oauth_application, :name => "OpenStreetMap Web Site", :scopes => "write_api write_notes")
18 Settings.oauth_application = osm_website_app.uid
30 within "form", :text => "Email Address or Username" do
31 fill_in "username", :with => user.email
32 fill_in "password", :with => "test"
39 click_on "Logout", :match => :first
43 within("#sidebar_content", &)
46 def within_content_body(&)
47 within("#content > .content-body", &)
50 def within_content_heading(&)
51 within("#content > .content-heading", &)