Skip to content

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.rb
index 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 PageObjects
def leave
component(class: ".can-leave").hover
btn = 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 = '';",
- )
end
def component(**args)