From 14da15a607626cb5388349fc78d3222c2358a017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Thu, 9 Jan 2025 16:54:14 +0100 Subject: [PATCH] #1574 tests --- test/functional/dmsf_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/dmsf_controller_test.rb b/test/functional/dmsf_controller_test.rb index 096fe18b..fdb67f9b 100644 --- a/test/functional/dmsf_controller_test.rb +++ b/test/functional/dmsf_controller_test.rb @@ -303,7 +303,7 @@ class DmsfControllerTest < RedmineDmsf::Test::TestCase assert_select 'a', text: @link1.title, count: 1 assert_select 'a[href$=?]', "/projects/#{@link1.target_project.identifier}/dmsf?folder_id=#{@link1.target_folder.id}", - count: 2 # Two because of folder1 and folder1_link + count: 4 # Two because of folder1 and folder1_link (2x - icon + link) end def test_folder_link_to_project @@ -314,7 +314,7 @@ class DmsfControllerTest < RedmineDmsf::Test::TestCase get "/projects/#{@link1.project_id}/dmsf", params: { folder_id: @link1.dmsf_folder_id } assert_response :success assert_select 'a', text: @link1.title, count: 1 - assert_select 'a[href$=?]', "/projects/#{@project2.identifier}/dmsf", count: 1 + assert_select 'a[href$=?]', "/projects/#{@project2.identifier}/dmsf", count: 2 # (2x - icon + link) end def test_new_forbidden