2018-06-07 23:56:11 +00:00
|
|
|
import NavigationBar from '../../../../src/components/NavigationBar';
|
|
|
|
import store from '../../../../src/store';
|
|
|
|
import specUtils from '../specUtils';
|
|
|
|
|
|
|
|
describe('NavigationBar.vue', () => {
|
2019-06-29 16:33:21 +00:00
|
|
|
it('should toggle the explorer', async () => specUtils.checkToggler(
|
2018-06-07 23:56:11 +00:00
|
|
|
NavigationBar,
|
|
|
|
wrapper => wrapper.find('.navigation-bar__button--explorer-toggler').trigger('click'),
|
|
|
|
() => store.getters['data/layoutSettings'].showExplorer,
|
2019-06-29 16:33:21 +00:00
|
|
|
'toggleExplorer',
|
2018-06-07 23:56:11 +00:00
|
|
|
));
|
|
|
|
|
2019-06-29 16:33:21 +00:00
|
|
|
it('should toggle the side bar', async () => specUtils.checkToggler(
|
2018-06-07 23:56:11 +00:00
|
|
|
NavigationBar,
|
|
|
|
wrapper => wrapper.find('.navigation-bar__button--stackedit').trigger('click'),
|
|
|
|
() => store.getters['data/layoutSettings'].showSideBar,
|
2019-06-29 16:33:21 +00:00
|
|
|
'toggleSideBar',
|
2018-06-07 23:56:11 +00:00
|
|
|
));
|
|
|
|
});
|