07d824faca
New localDbSvc.getWorkspaceItems method used to export workspaces. Added offline availability in the workspace management modal. New accordion in the badge management modal. Add badge creation checks in unit tests.
20 lines
726 B
JavaScript
20 lines
726 B
JavaScript
import NavigationBar from '../../../../src/components/NavigationBar';
|
|
import store from '../../../../src/store';
|
|
import specUtils from '../specUtils';
|
|
|
|
describe('NavigationBar.vue', () => {
|
|
it('should toggle the explorer', async () => specUtils.checkToggler(
|
|
NavigationBar,
|
|
wrapper => wrapper.find('.navigation-bar__button--explorer-toggler').trigger('click'),
|
|
() => store.getters['data/layoutSettings'].showExplorer,
|
|
'toggleExplorer',
|
|
));
|
|
|
|
it('should toggle the side bar', async () => specUtils.checkToggler(
|
|
NavigationBar,
|
|
wrapper => wrapper.find('.navigation-bar__button--stackedit').trigger('click'),
|
|
() => store.getters['data/layoutSettings'].showSideBar,
|
|
'toggleSideBar',
|
|
));
|
|
});
|