diff --git a/test/functional/apps/context/_discover_navigation.js b/test/functional/apps/context/_discover_navigation.js index 87363210727f3..1c3862e07e9d7 100644 --- a/test/functional/apps/context/_discover_navigation.js +++ b/test/functional/apps/context/_discover_navigation.js @@ -37,6 +37,7 @@ export default function ({ getService, getPageObjects }) { await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings(); await kibanaServer.uiSettings.update({ 'doc_table:legacy': true, + defaultIndex: 'logstash-*', }); await PageObjects.common.navigateToApp('discover'); @@ -49,7 +50,6 @@ export default function ({ getService, getPageObjects }) { await PageObjects.discover.clickFieldListPlusFilter(columnName, value); } }); - after(async () => { await kibanaServer.uiSettings.replace({}); }); diff --git a/test/functional/apps/context/index.js b/test/functional/apps/context/index.js index 52ac3e3ba5a35..245f88a337dce 100644 --- a/test/functional/apps/context/index.js +++ b/test/functional/apps/context/index.js @@ -19,11 +19,8 @@ export default function ({ getService, getPageObjects, loadTestFile }) { await browser.setWindowSize(1200, 800); await esArchiver.loadIfNeeded('logstash_functional'); await esArchiver.load('visualize'); - await PageObjects.common.navigateToApp('discover'); - }); - - beforeEach(async function () { await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); + await PageObjects.common.navigateToApp('discover'); }); after(function unloadMakelogs() {