]> source.dussan.org Git - redmine.git/commitdiff
Fixes tests after r23104 (#23980).
authorMarius Balteanu <marius.balteanu@zitec.com>
Fri, 11 Oct 2024 06:48:26 +0000 (06:48 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Fri, 11 Oct 2024 06:48:26 +0000 (06:48 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23114 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/helpers/gantt_test.rb

index d485518a38da787020196580e1c51b3c07cf8c2c..476e54952167a087c93bfbbed94ab85230dc7a16 100644 (file)
@@ -162,8 +162,8 @@ class Redmine::Helpers::GanttHelperTest < Redmine::HelperTest
     setup_subjects
     @output_buffer = @gantt.subjects
     assert_select "div.issue-subject", /#{@issue.subject}/
-    # subject 56px: 44px + 12px(collapse/expand icon's width)
-    assert_select 'div.issue-subject[style*="left:56px"]'
+    # subject 62px: 44px + 18px(collapse/expand icon's width)
+    assert_select 'div.issue-subject[style*="left:62px"]'
   end
 
   test "#subjects issue assigned to a shared version of another project should be rendered" do
@@ -211,10 +211,10 @@ class Redmine::Helpers::GanttHelperTest < Redmine::HelperTest
     assert_select 'div.issue-subject[style*="left:44px"]', /#{@issue.subject}/
     # children 64px
     assert_select 'div.issue-subject[style*="left:64px"]', /child1/
-    # children 76px: 64px + 12px(collapse/expand icon's width)
-    assert_select 'div.issue-subject[style*="left:76px"]', /child2/
-    # grandchild 96px: 84px + 12px(collapse/expand icon's width)
-    assert_select 'div.issue-subject[style*="left:96px"]', /grandchild/, @output_buffer
+    # children 76px: 64px + 18px(collapse/expand icon's width)
+    assert_select 'div.issue-subject[style*="left:82px"]', /child2/
+    # grandchild 96px: 84px + 18px(collapse/expand icon's width)
+    assert_select 'div.issue-subject[style*="left:102px"]', /grandchild/, @output_buffer
   end
 
   test "#lines" do
@@ -322,7 +322,7 @@ class Redmine::Helpers::GanttHelperTest < Redmine::HelperTest
     create_gantt
     @output_buffer = @gantt.subject('subject', :format => :html, :indent => 40)
     # subject 52px: 40px(indent) + 12px(collapse/expand icon's width)
-    assert_select 'div[style*="left:52px"]'
+    assert_select 'div[style*="left:58px"]'
   end
 
   test "#line_for_project" do