fix(custom_buttons): improve sidebar collapse logic to check for expanded state (#34809)
This commit is contained in:
parent
ea03bd020e
commit
dbcb7b608a
1 changed files with 6 additions and 1 deletions
|
|
@ -42,7 +42,12 @@ describe(
|
|||
cy.login();
|
||||
cy.visit(`/desk/note/new`);
|
||||
// close the sidebar cause default is expanded
|
||||
cy.get(".body-sidebar .collapse-sidebar-link").click();
|
||||
cy.get(".body-sidebar-container").then(($sidebar) => {
|
||||
if ($sidebar.hasClass("expanded")) {
|
||||
cy.get(".body-sidebar .collapse-sidebar-link").click();
|
||||
cy.get(".body-sidebar-container").should("not.have.class", "expanded");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
test_button_names.forEach((button_name) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue