From 56fb343a0de2165d7dcb33ae79547fb1f00d23d6 Mon Sep 17 00:00:00 2001 From: Tre' Seymour Date: Thu, 14 Oct 2021 09:05:09 -0400 Subject: [PATCH] [QA][refactor] Use ui settings - discover histogram Use ui settings instead of setting absolute range for timepicker. Stacked on top of: https://github.com/elastic/kibana/pull/114530 --- test/functional/apps/discover/_discover_histogram.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/functional/apps/discover/_discover_histogram.ts b/test/functional/apps/discover/_discover_histogram.ts index 36abcd81d53a..0c9379bf579c 100644 --- a/test/functional/apps/discover/_discover_histogram.ts +++ b/test/functional/apps/discover/_discover_histogram.ts @@ -40,10 +40,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'test/functional/fixtures/es_archiver/long_window_logstash_index_pattern' ); await security.testUser.restoreDefaults(); + await PageObjects.common.unsetTime(); }); - async function prepareTest(fromTime: string, toTime: string, interval?: string) { - await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime); + async function prepareTest(from: string, to: string, interval?: string) { + await PageObjects.common.setTime({ from, to }); + await PageObjects.common.navigateToApp('discover'); await PageObjects.discover.waitUntilSearchingHasFinished(); if (interval) { await PageObjects.discover.setChartInterval(interval);