<p></p>
<p dir="auto">Our system specs (and our teaspoon specs) don't work on Ubuntu, due to incompatibilities with firefox snap. We should document that they don't work, or we should document how to make them work, or (ideally) figure out if there's a way to get them to work automatically.</p>
<p dir="auto">The root of the problem is that on Ubuntu, firefox is distributed as a snap package, and so the path returned by <code class="notranslate">which firefox</code> is not actually a firefox binary, it's just a bit of snap-related code.</p>
<p dir="auto">My personal not-quite-working-workarounds are, in <code class="notranslate">test/application_system_test_case.rb</code>:</p>
<div class="highlight highlight-source-diff" dir="auto"><pre class="notranslate"> class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, :using => :headless_firefox do |options|
options.add_preference("intl.accept_languages", "en")
<span class="pl-mi1"><span class="pl-mi1">+</span> options.binary = "/snap/firefox/current/usr/lib/firefox/firefox"</span>
end</pre></div>
<p dir="auto">I've still found problems with some javascript stuff that I haven't yet resolved.</p>
<p dir="auto">For <code class="notranslate">/test/teaspoon_env.rb</code>:</p>
<div class="highlight highlight-source-diff" dir="auto"><pre class="notranslate"> config.driver_options = {
:client_driver => :firefox,
:selenium_options => {
<span class="pl-md"><span class="pl-md">-</span> :options => Selenium::WebDriver::Firefox::Options.new(:args => ["-headless"])</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> :options => Selenium::WebDriver::Firefox::Options.new(:args => ["-headless"], :binary => "/snap/firefox/current/usr/lib/firefox/firefox")</span>
}
}</pre></div>
<p dir="auto">I'm not sure whether documenting that they don't work is easier than documenting the workarounds!</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5488">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJCP7SKAAY5V5AVNUT2JZ6JLAVCNFSM6AAAAABU4HLSY2VHI2DSMVQWIX3LMV43ASLTON2WKOZSG43TOOJSGM2TENI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMN4U5YWVMGKRPSHFD2JZ6JLA5CNFSM6AAAAABU4HLSY2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKLE57YU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5488</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5488",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5488",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>