From 868c7125c64a4b7b25484a307cde4e9aafa7109f Mon Sep 17 00:00:00 2001 From: Spencer Date: Tue, 2 Jul 2019 14:47:08 -0700 Subject: [PATCH] [ftr/common] remove defaultIndex check (#39714) --- test/functional/page_objects/common_page.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/functional/page_objects/common_page.js b/test/functional/page_objects/common_page.js index 4c7b59f0a8bed..05973c8b4e5b9 100644 --- a/test/functional/page_objects/common_page.js +++ b/test/functional/page_objects/common_page.js @@ -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);