From 8fefc73b2b9472a01ac491ccf4fda4be0707ddf8 Mon Sep 17 00:00:00 2001 From: Tre' Seymour Date: Mon, 10 May 2021 11:49:51 -0600 Subject: [PATCH] Add back those calls that were in the previous after call, use them in this before instead --- .../apps/visualize/_histogram_request_start.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/functional/apps/visualize/_histogram_request_start.ts b/test/functional/apps/visualize/_histogram_request_start.ts index 7368eda4f6177..63b878522e09d 100644 --- a/test/functional/apps/visualize/_histogram_request_start.ts +++ b/test/functional/apps/visualize/_histogram_request_start.ts @@ -13,6 +13,8 @@ import { FtrProviderContext } from '../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { const log = getService('log'); const retry = getService('retry'); + const esArchiver = getService('esArchiver'); + const kibanaServer = getService('kibanaServer'); const PageObjects = getPageObjects([ 'common', @@ -24,6 +26,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('histogram agg onSearchRequestStart', function () { before(async function () { + // loading back default data + await esArchiver.load('empty_kibana'); + + await kibanaServer.importExport.load('discover'); + await esArchiver.loadIfNeeded('logstash_functional'); + await esArchiver.loadIfNeeded('long_window_logstash'); + await PageObjects.visualize.initTests(); log.debug('navigateToApp visualize'); await PageObjects.visualize.navigateToNewAggBasedVisualization();