Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix chat sidebar spec flakes (#40574)

Jarek Radoszb86e0551398c
diff --git a/plugins/chat/spec/system/page_objects/sidebar/chat_sidebar.rb b/plugins/chat/spec/system/page_objects/sidebar/chat_sidebar.rb
index 8fbd7a7b690..6403293979c 100644
--- a/plugins/chat/spec/system/page_objects/sidebar/chat_sidebar.rb
+++ b/plugins/chat/spec/system/page_objects/sidebar/chat_sidebar.rb
@@ -146,12 +146,14 @@ module PageObjects
# Requires open_notification_settings to be called first
def set_notification_level(level)
find(".chat-channel-sidebar-link-menu__notification-level-#{level}").click
+ has_no_css?(".chat-channel-sidebar-link-menu__notification-level-#{level}")
self
end
# Requires open_notification_settings to be called first
def toggle_mute_channel
find(".chat-channel-sidebar-link-menu__mute-channel").click
+ has_no_css?(".chat-channel-sidebar-link-menu__mute-channel")
self
end
end