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:
Joffrey JAFFEUX
2023-08-23 13:05:15 +02:00
committed by GitHub
parent 5842e0f50d
commit a008f61f8f
4 changed files with 36 additions and 2 deletions

View File

@ -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