From dab1b8bebcc607be5ee69bebb7d80b3b658db59a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 29 Apr 2019 14:33:08 +0200 Subject: [PATCH] [30116] Make dropdown invisible for read-only users https://community.openproject.com/wp/30116 [ci skip] --- .../boards/board/board-list/board-list.component.html | 2 +- modules/boards/spec/features/board_management_spec.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/modules/boards/board/board-list/board-list.component.html b/frontend/src/app/modules/boards/board/board-list/board-list.component.html index 857e834878..ea4a0f5d81 100644 --- a/frontend/src/app/modules/boards/board/board-list/board-list.component.html +++ b/frontend/src/app/modules/boards/board/board-list/board-list.component.html @@ -20,7 +20,7 @@
- +
diff --git a/modules/boards/spec/features/board_management_spec.rb b/modules/boards/spec/features/board_management_spec.rb index 876d509fd8..f823e5c9b4 100644 --- a/modules/boards/spec/features/board_management_spec.rb +++ b/modules/boards/spec/features/board_management_spec.rb @@ -176,6 +176,11 @@ describe 'Board management spec', type: :feature, js: true do board_page = board_index.open_board board_view board_page.expect_query 'List 1', editable: false board_page.expect_editable false + + list = page.find(board_page.list_selector('List 1')) + list.hover + expect(page).to have_no_selector('.board-list--more-menu') + board_page.back_to_index board_index.expect_board board_view.name