https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292019-03-31T05:32:02ZRedmineRedmine - Defect #31074: TimelogTest#test_default_query_setting fails depending on the language of the browser https://www.redmine.org/issues/31074?journal_id=910252019-03-31T05:32:02ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>4.1.0</i></li></ul><p>Forcing the English language for anonymous users fixes the issue.</p>
<pre><code class="diff syntaxhl"><span class="gh">diff --git a/test/system/timelog_test.rb b/test/system/timelog_test.rb
index 58886c050..7c637d6cd 100644
</span><span class="gd">--- a/test/system/timelog_test.rb
</span><span class="gi">+++ b/test/system/timelog_test.rb
</span><span class="p">@@ -75,11 +75,13 @@</span> class TimelogTest < ApplicationSystemTestCase
end
def test_default_query_setting
<span class="gd">- # 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')
</span><span class="gi">+ 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
</span> end
# Change the default columns
</code></pre> Redmine - Defect #31074: TimelogTest#test_default_query_setting fails depending on the language of the browser https://www.redmine.org/issues/31074?journal_id=910502019-04-01T05:40:46ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>TimelogTest#test_default_query_setting fails</i> to <i>TimelogTest#test_default_query_setting fails depending on the language of the browser </i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed.</p>