A platform for community discussion. Free, open, simple.
DEV: prevents message actions to hide drawer's header (#22448)
Joffrey JAFFEUX478c4b1a7469
diff --git a/plugins/chat/assets/stylesheets/desktop/chat-message-actions.scss b/plugins/chat/assets/stylesheets/desktop/chat-message-actions.scssindex 3d015632e7c..64b2a7382de 100644--- a/plugins/chat/assets/stylesheets/desktop/chat-message-actions.scss+++ b/plugins/chat/assets/stylesheets/desktop/chat-message-actions.scss@@ -1,5 +1,5 @@-.chat-message-actions[data-popper-reference-hidden],-.chat-message-actions[data-popper-escaped] {+.chat-message-actions-container[data-popper-reference-hidden],+.chat-message-actions-container[data-popper-escaped] {visibility: hidden;pointer-events: none;}diff --git a/plugins/chat/spec/system/drawer_spec.rb b/plugins/chat/spec/system/drawer_spec.rbindex 9a099f3d23c..82ae5aa0542 100644--- a/plugins/chat/spec/system/drawer_spec.rb+++ b/plugins/chat/spec/system/drawer_spec.rb@@ -80,7 +80,7 @@ RSpec.describe "Drawer", type: :system dodrawer.open_channel(channel_1)channel_page.hover_message(message_1)- expect(page).to have_css(".chat-message-actions-container")+ expect(page).to have_css(".chat-message-actions-container", visible: :all)drawer.closediff --git a/plugins/chat/spec/system/page_objects/chat_drawer/chat_drawer.rb b/plugins/chat/spec/system/page_objects/chat_drawer/chat_drawer.rbindex 5366ec7a694..925e4e711ee 100644--- a/plugins/chat/spec/system/page_objects/chat_drawer/chat_drawer.rb+++ b/plugins/chat/spec/system/page_objects/chat_drawer/chat_drawer.rb@@ -5,14 +5,17 @@ module PageObjectsclass ChatDrawer < PageObjects::Pages::BaseVISIBLE_DRAWER = ".chat-drawer.is-expanded"def open_browse+ mouseoutfind("#{VISIBLE_DRAWER} .open-browse-page-btn").clickenddef close+ mouseoutfind("#{VISIBLE_DRAWER} .chat-drawer-header__close-btn").clickenddef back+ mouseoutfind("#{VISIBLE_DRAWER} .chat-drawer-header__back-btn").clickend@@ -24,6 +27,7 @@ module PageObjectsenddef maximize+ mouseoutfind("#{VISIBLE_DRAWER} .chat-drawer-header__full-screen-btn").clickend@@ -62,6 +66,16 @@ module PageObjectsdef has_no_unread_thread_indicator?has_no_css?("#{thread_list_button_selector}.has-unreads")end++ private++ def mouseout+ # Ensure that the mouse is not hovering over the drawer+ # and that the message actions menu is closed.+ # This check is essential because the message actions menu might partially+ # overlap with the header, making certain buttons inaccessible.+ find("#site-logo").hover+ endendendend