]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/embed_test.rb
Merge remote-tracking branch 'upstream/pull/5574'
[rails.git] / test / system / embed_test.rb
index 6003c6f4abfcc5cdb9ed9fa4064936eb9d253a56..f47fd592df335bafddc6323737811badce85664f 100644 (file)
@@ -17,3 +17,14 @@ class GermanEmbedTest < ApplicationSystemTestCase
     assert_link "Ein Problem melden"
   end
 end
     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