From: Andy Allan Date: Wed, 14 Jun 2023 13:08:38 +0000 (+0100) Subject: Merge pull request #3907 from Dimitar5555/patch-1 X-Git-Tag: live~1530 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e9e4b10473fa536cdb840303ee4afccf71c69329?hp=-c Merge pull request #3907 from Dimitar5555/patch-1 Facelift `offline.html` and use Bootstrap classes for "notifications" under the search bar --- e9e4b10473fa536cdb840303ee4afccf71c69329 diff --combined test/controllers/site_controller_test.rb index 75a042bfe,73e1b4729..cc155155f --- a/test/controllers/site_controller_test.rb +++ b/test/controllers/site_controller_test.rb @@@ -476,11 -476,6 +476,11 @@@ class SiteControllerTest < ActionDispat assert_response :success assert_template "about" assert_select "div[lang='ar'][dir='rtl']" + + # Page should still render even with incorrect locale + get about_path(:about_locale => "zzz") + assert_response :success + assert_template "about" end # Test the export page @@@ -500,7 -495,7 +500,7 @@@ def test_offline get offline_path assert_response :success - assert_template "offline" + assert_select ".alert-warning" end # Test the rich text preview