This commit is contained in:
parent
68c4db087a
commit
953b9ad5fe
|
@ -49,7 +49,7 @@ export async function persistSavedSearch(
|
|||
if (state.grid) {
|
||||
savedSearch.grid = state.grid;
|
||||
}
|
||||
if (state.hideChart) {
|
||||
if (typeof state.hideChart !== 'undefined') {
|
||||
savedSearch.hideChart = state.hideChart;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,15 +97,25 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
expect(canvasExists).to.be(false);
|
||||
await PageObjects.discover.saveSearch(savedSearch);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await PageObjects.discover.clickNewSearchButton();
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await PageObjects.discover.loadSavedSearch('persisted hidden histogram');
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
canvasExists = await elasticChart.canvasExists();
|
||||
expect(canvasExists).to.be(false);
|
||||
await testSubjects.click('discoverChartToggle');
|
||||
canvasExists = await elasticChart.canvasExists();
|
||||
expect(canvasExists).to.be(true);
|
||||
await PageObjects.discover.clickResetSavedSearchButton();
|
||||
await PageObjects.discover.saveSearch('persisted hidden histogram');
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await PageObjects.discover.clickNewSearchButton();
|
||||
await PageObjects.discover.loadSavedSearch('persisted hidden histogram');
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
canvasExists = await elasticChart.canvasExists();
|
||||
expect(canvasExists).to.be(false);
|
||||
expect(canvasExists).to.be(true);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue