From a529022377337eaf6365c57e11607b7e4a651a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Fri, 27 Mar 2020 09:01:38 +0100 Subject: [PATCH] #1080 EasyExtensions 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 d57a1c32..3f647c1b 100644 --- a/test/functional/dmsf_controller_test.rb +++ b/test/functional/dmsf_controller_test.rb @@ -222,7 +222,7 @@ class DmsfControllerTest < RedmineDmsf::Test::TestCase get :show, params: { id: @project.id } assert_response :success # New file link - assert_select 'a.icon-add' + assert_select 'a[href$=?]', '/dmsf/upload/multi_upload' # Filters assert_select 'fieldset#filters' # Options @@ -239,7 +239,7 @@ class DmsfControllerTest < RedmineDmsf::Test::TestCase get :show, params: { id: @project.id } assert_response :success # New file link should be missing - assert_select 'a.icon-add', false, 'Adding files is not allowed' + assert_select 'a[href$=?]', '/dmsf/upload/multi_upload', count: 0 end def test_show_csv