A platform for community discussion. Free, open, simple.
DEV: attempts to fix flakey spec (#25984)
Joffrey JAFFEUX3200e276b71d
diff --git a/plugins/chat/spec/system/page_objects/chat/components/channel_row.rb b/plugins/chat/spec/system/page_objects/chat/components/channel_row.rbindex b3d16f948e8..fc963a6efb8 100644--- a/plugins/chat/spec/system/page_objects/chat/components/channel_row.rb+++ b/plugins/chat/spec/system/page_objects/chat/components/channel_row.rb@@ -25,14 +25,7 @@ module PageObjectsdef leavecomponent(class: ".can-leave").hoverbtn = component.find(".chat-channel-leave-btn", visible: :all)- # style manipulation is necessary to have it working with @media(hover: hover) on CI- page.execute_script(- "document.querySelector('#{build_selector} .chat-channel-leave-btn').style.display = 'block';",- )btn.click- page.execute_script(- "document.querySelector('#{build_selector} .chat-channel-leave-btn').style.display = '';",- )enddef component(**args)