Skip to content

Commit

Permalink
[QA][refactor] Use ui settings - discover histogram
Browse files Browse the repository at this point in the history
Use ui settings instead of setting absolute range
for timepicker.

Stacked on top of: #114530
  • Loading branch information
wayneseymour committed Oct 20, 2021
1 parent 8fcfa79 commit 3f73477
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/functional/apps/discover/_discover_histogram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f73477

Please sign in to comment.