FIX: prevents setPanel to also set separated mode (#23227)

This could happen after you had already change the separation mode and would cause unexpected bugs.

This PR also adds more tests around using switch buttons with chat.
This commit is contained in:
Joffrey JAFFEUX
2023-08-24 18:21:28 +02:00
committed by GitHub
parent 70f1cc5552
commit 46c7e47f50
4 changed files with 38 additions and 1 deletions

View File

@@ -34,6 +34,10 @@ module PageObjects
find(".sidebar__panel-switch-button[data-key='chat']").click
end
def switch_to_main
find(".sidebar__panel-switch-button[data-key='main']").click
end
def has_no_section?(name)
has_no_css?(".sidebar-sections [data-section-name='#{name.parameterize}']")
end