]> source.dussan.org Git - redmine.git/commitdiff
TimelogTest#test_default_query_setting fails depending on the language of the browser...
authorGo MAEDA <maeda@farend.jp>
Mon, 1 Apr 2019 05:40:07 +0000 (05:40 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 1 Apr 2019 05:40:07 +0000 (05:40 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18032 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/system/timelog_test.rb

index 58886c050b006d6db30997028856ec700095e7eb..7c637d6cd22979d9a8148591cf6460845109d6cb 100644 (file)
@@ -75,11 +75,13 @@ class TimelogTest < ApplicationSystemTestCase
   end
 
   def test_default_query_setting
-    # Display the list with the default settings
-    visit '/time_entries'
-    within 'table.time-entries thead' do
-      assert page.has_no_link?('Tracker')
-      assert page.has_text?('Comment')
+    with_settings :default_language => 'en', :force_default_language_for_anonymous => '1' do
+      # Display the list with the default settings
+      visit '/time_entries'
+      within 'table.time-entries thead' do
+        assert page.has_no_link?('Tracker')
+        assert page.has_text?('Comment')
+      end
     end
 
     # Change the default columns