From 145244a66b7eb704fd51c97056463dceb1a7cc39 Mon Sep 17 00:00:00 2001 From: restrry Date: Sun, 25 Apr 2021 14:01:16 +0200 Subject: [PATCH] Revert "set defaultIndex before each test. otherwise it is deleted in the first test file during cleanup phase" This reverts commit a128d7b7c03493a06d76662902877e535a424b9a. --- test/functional/apps/context/_discover_navigation.js | 2 +- test/functional/apps/context/index.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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() {