mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 03:24:33 +08:00
FIX: correctly closes panel when exiting chat (#23201)
We don't use activate/deactivate as it would cause: close/open in short succession when going from threads to thread for example.
This commit is contained in:
@ -30,6 +30,10 @@ module PageObjects
|
||||
has_css?(".sidebar-sections [data-section-name='#{name.parameterize}']")
|
||||
end
|
||||
|
||||
def switch_to_chat
|
||||
find(".sidebar__panel-switch-button[data-key='chat']").click
|
||||
end
|
||||
|
||||
def has_no_section?(name)
|
||||
has_no_css?(".sidebar-sections [data-section-name='#{name.parameterize}']")
|
||||
end
|
||||
|
Reference in New Issue
Block a user