Skip to content

Commit

Permalink
[ftr/common] remove defaultIndex check (#39714)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer authored Jul 2, 2019
1 parent ec8ec9f commit 868c712
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions test/functional/page_objects/common_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,20 +136,6 @@ export function CommonPageProvider({ getService, getPageObjects }) {
return retry.try(function () {
// since we're using hash URLs, always reload first to force re-render
return kibanaServer.uiSettings.getDefaultIndex()
.then(function (defaultIndex) {
if (appName === 'discover' || appName === 'visualize' || appName === 'dashboard') {
if (!defaultIndex) {
// https://github.com/elastic/kibana/issues/7496
// Even though most tests are using esClient to set the default index, sometimes Kibana clobbers
// that change. If we got here, fix it.
log.debug(' >>>>>>>> WARNING Navigating to [' + appName + '] with defaultIndex=' + defaultIndex);
log.debug(' >>>>>>>> Setting defaultIndex to "logstash-*""');
return kibanaServer.uiSettings.update({
'defaultIndex': 'logstash-*',
});
}
}
})
.then(function () {
log.debug('navigate to: ' + url);
return browser.get(url);
Expand Down

0 comments on commit 868c712

Please sign in to comment.