From 55db5688f14f2d1e77eb6578dd3e12662c56505d Mon Sep 17 00:00:00 2001 From: Mantas Masalskis Date: Wed, 19 Feb 2020 10:25:00 +0100 Subject: [PATCH] Fixes #2890 - Auto-Complete on Typing for Tags is hidden behind Pop-Up Windows. --- app/assets/stylesheets/zammad.scss | 2 +- spec/system/manage/trigger_spec.rb | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 spec/system/manage/trigger_spec.rb diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index beaf7868e..5b2fa1de9 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -7042,7 +7042,7 @@ footer { /* allow/show autocomplete in modal dialog */ .ui-autocomplete.ui-widget-content { - @extend .zIndex-8; + @extend .zIndex-9; position: absolute; max-height: 380px; overflow: auto; diff --git a/spec/system/manage/trigger_spec.rb b/spec/system/manage/trigger_spec.rb new file mode 100644 index 000000000..4e3ca2e8b --- /dev/null +++ b/spec/system/manage/trigger_spec.rb @@ -0,0 +1,28 @@ +require 'rails_helper' + +RSpec.describe 'Manage > Trigger', type: :system do + + context 'Perform' do + + context 'Tags' do + + it 'shows tag selection list in foreground' do + tag_item = create :tag_item + + visit '/#manage/trigger' + click '.page-header-meta .btn--success' + + modal_ready + + within '.modal .ticket_perform_action' do + find('.js-attributeSelector select').select('Tags') + + input = find('.js-value .token-input') + input.fill_in with: tag_item.name.slice(0, 3) + end + + expect(page).to have_css('.ui-autocomplete.ui-widget-content') { |elem| !elem.obscured? } + end + end + end +end