Show kbn_top_nav in dashboard only mode. (#34400)

This commit is contained in:
Luke Elmers 2019-04-04 14:41:18 -06:00 committed by GitHub
parent 2bf18429cc
commit 8b7f171eb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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';

View file

@ -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);