]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #3907 from Dimitar5555/patch-1
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Jun 2023 13:08:38 +0000 (14:08 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 13:08:38 +0000 (14:08 +0100)
Facelift `offline.html` and use Bootstrap classes for "notifications" under the search bar

1  2 
test/controllers/site_controller_test.rb

index 75a042bfeb95ca1ca14db8638b7040606010b3a1,73e1b4729430930c3a50fc9e78a1ceba98caf170..cc155155fb7673771cf6c35e6a51afd7cbbdc5d2
@@@ -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
    def test_offline
      get offline_path
      assert_response :success
-     assert_template "offline"
+     assert_select ".alert-warning"
    end
  
    # Test the rich text preview