mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
This commit is contained in:
parent
bbba2083ef
commit
4b90bcbc70
3 changed files with 15 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
|||
saved-obj="savedVis"
|
||||
ui-state="uiState"
|
||||
app-state="state"
|
||||
editor-mode="true"
|
||||
editor-mode="chrome.getVisible()"
|
||||
show-spy-panel="chrome.getVisible()"
|
||||
>
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ import expect from 'expect.js';
|
|||
|
||||
export default function ({ getService, getPageObjects }) {
|
||||
const log = getService('log');
|
||||
const remote = getService('remote');
|
||||
const retry = getService('retry');
|
||||
const PageObjects = getPageObjects(['common', 'visualize', 'header', 'settings']);
|
||||
|
||||
|
@ -181,6 +182,15 @@ export default function ({ getService, getPageObjects }) {
|
|||
expect(data.trim().split('\n')).to.eql(expectedTableData);
|
||||
});
|
||||
});
|
||||
|
||||
it('should hide side editor if embed is set to true in url', async () => {
|
||||
const url = await remote.getCurrentUrl();
|
||||
const embedUrl = url.split('/visualize/').pop().replace('?_g=', '?embed=true&_g=');
|
||||
await PageObjects.common.navigateToUrl('visualize', embedUrl);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
const sideEditorExists = await PageObjects.visualize.getSideEditorExists();
|
||||
expect(sideEditorExists).to.be(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -261,6 +261,10 @@ export function VisualizePageProvider({ getService, getPageObjects }) {
|
|||
return await testSubjects.exists('spyToggleButton');
|
||||
}
|
||||
|
||||
async getSideEditorExists() {
|
||||
return await find.existsByCssSelector('.collapsible-sidebar');
|
||||
}
|
||||
|
||||
async openSpyPanel() {
|
||||
log.debug('openSpyPanel');
|
||||
const isOpen = await testSubjects.exists('spyContentContainer');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue