diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-28 18:09:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-28 18:09:59 +0300 |
commit | e0529f76a36026dc4bd51fbec1e5c52e7f3866e1 (patch) | |
tree | ac809b949e3257d89cac17c3409aadddd0a740cb /spec/frontend/super_sidebar | |
parent | 72cb3bee798655c2d370dfedf3c04665aaa43aa3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/super_sidebar')
-rw-r--r-- | spec/frontend/super_sidebar/super_sidebar_collapsed_state_manager_spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/super_sidebar/super_sidebar_collapsed_state_manager_spec.js b/spec/frontend/super_sidebar/super_sidebar_collapsed_state_manager_spec.js index aa1f0765411..4028d91c82f 100644 --- a/spec/frontend/super_sidebar/super_sidebar_collapsed_state_manager_spec.js +++ b/spec/frontend/super_sidebar/super_sidebar_collapsed_state_manager_spec.js @@ -91,6 +91,12 @@ describe('Super Sidebar Collapsed State Manager', () => { expect(setCookie).not.toHaveBeenCalled(); }, ); + + it('does not collapse sidebar when forceDesktopExpandedSidebar is true and windowWidth is xl', () => { + jest.spyOn(bp, 'windowWidth').mockReturnValue(xl); + initSuperSidebarCollapsedState(true); + expect(findPage().classList).not.toContain(SIDEBAR_COLLAPSED_CLASS); + }); }); describe('bindSuperSidebarCollapsedEvents', () => { |