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 Capybara.configure do |config|
13 config.enable_aria_label = true
16 driven_by :selenium, :using => Settings.system_test_headless ? :headless_firefox : :firefox do |options|
17 options.add_preference("intl.accept_languages", "en")
18 options.binary = Settings.system_test_firefox_binary if Settings.system_test_firefox_binary
23 osm_website_app = create(:oauth_application, :name => "OpenStreetMap Web Site", :scopes => "write_api write_notes")
24 Settings.oauth_application = osm_website_app.uid
36 within "form", :text => "Email Address or Username" do
37 fill_in "username", :with => user.email
38 fill_in "password", :with => "test"
45 click_on "Logout", :match => :first
49 within("#sidebar_content", &)
52 def within_content_body(&)
53 within("#content > .content-body", &)
56 def within_content_heading(&)
57 within("#content > .content-heading", &)