X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6fb6245b178b66cfb317c01ab4976e061f7a9d17..af71ec55766b84035df448bb772bfcb66877aa94:/test/system/embed_test.rb?ds=sidebyside diff --git a/test/system/embed_test.rb b/test/system/embed_test.rb index 6003c6f4a..f47fd592d 100644 --- a/test/system/embed_test.rb +++ b/test/system/embed_test.rb @@ -17,3 +17,14 @@ class GermanEmbedTest < ApplicationSystemTestCase assert_link "Ein Problem melden" end end + +class UnknownLanguageEmbedTest < ApplicationSystemTestCase + driven_by :selenium, :using => :headless_firefox, :options => { :name => :selenium_unknown_language } do |options| + options.add_preference("intl.accept_languages", "unknown-language") + end + + test "shows report link in fallback language" do + visit export_embed_path + assert_link "Report a problem" + end +end