This commit is contained in:
@@ -35,6 +35,19 @@ describe('mobile touch targets', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('desktop sidebar collapse & folder scrollbar', () => {
|
||||
it('lets the top menu collapse the desktop sidebar', () => {
|
||||
expect(app).toContain('sidebar-collapsed')
|
||||
expect(app).toContain('toggleSidebar')
|
||||
expect(css).toContain('.shell.sidebar-collapsed{grid-template-columns:0 minmax(430px,1fr) 350px}')
|
||||
})
|
||||
|
||||
it('hides the folders scrollbar while staying scrollable', () => {
|
||||
expect(css).toContain('scrollbar-width:none')
|
||||
expect(css).toContain('.folders::-webkit-scrollbar{display:none}')
|
||||
})
|
||||
})
|
||||
|
||||
describe('sidebar layout', () => {
|
||||
it('switches to the compact layout before the desktop grid can be clipped', () => {
|
||||
expect(css).toContain('@media(max-width:930px){.shell')
|
||||
|
||||
Reference in New Issue
Block a user