[ftr/common] remove defaultIndex check (#39714)

This commit is contained in:
Spencer 2019-07-02 14:47:08 -07:00 committed by GitHub
parent ec8ec9fd1a
commit 868c7125c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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