Show kbn_top_nav in dashboard only mode. (#34400)
This commit is contained in:
parent
2bf18429cc
commit
8b7f171eb8
|
@ -30,6 +30,7 @@ import 'uiExports/autocompleteProviders';
|
|||
import 'uiExports/shareContextMenuExtensions';
|
||||
import _ from 'lodash';
|
||||
import 'ui/autoload/all';
|
||||
import 'ui/kbn_top_nav';
|
||||
import 'plugins/kibana/dashboard';
|
||||
import 'ui/vislib';
|
||||
import 'ui/agg_response';
|
||||
|
|
|
@ -145,6 +145,11 @@ export default function ({ getService, getPageObjects }) {
|
|||
expect(filterCount).to.equal(1);
|
||||
});
|
||||
|
||||
it('shows the full screen menu item', async () => {
|
||||
const fullScreenMenuItemExists = await testSubjects.exists('dashboardFullScreenMode');
|
||||
expect(fullScreenMenuItemExists).to.be(true);
|
||||
});
|
||||
|
||||
it('does not show the edit menu item', async () => {
|
||||
const editMenuItemExists = await testSubjects.exists('dashboardEditMode');
|
||||
expect(editMenuItemExists).to.be(false);
|
||||
|
|
Loading…
Reference in a new issue