mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
parent
bd2d76fb03
commit
60092c2bd3
1 changed files with 7 additions and 8 deletions
|
@ -4,7 +4,6 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import datemath from '@elastic/datemath';
|
||||
import expect from '@kbn/expect';
|
||||
import mockRolledUpData from './hybrid_index_helper';
|
||||
|
||||
|
@ -12,7 +11,6 @@ export default function({ getService, getPageObjects }) {
|
|||
const es = getService('legacyEs');
|
||||
const esArchiver = getService('esArchiver');
|
||||
const retry = getService('retry');
|
||||
const testSubjects = getService('testSubjects');
|
||||
const PageObjects = getPageObjects([
|
||||
'common',
|
||||
'settings',
|
||||
|
@ -27,11 +25,10 @@ export default function({ getService, getPageObjects }) {
|
|||
const rollupJobName = `tsvb-test-rollup-job-${Date.now()}`;
|
||||
const rollupSourceIndexName = 'rollup-source-data';
|
||||
const rollupTargetIndexName = `rollup-target-data`;
|
||||
const now = new Date();
|
||||
const pastDates = [
|
||||
datemath.parse('now-1m', { forceNow: now }),
|
||||
datemath.parse('now-2m', { forceNow: now }),
|
||||
datemath.parse('now-3m', { forceNow: now }),
|
||||
new Date('October 15, 2019 05:35:32'),
|
||||
new Date('October 15, 2019 05:34:32'),
|
||||
new Date('October 15, 2019 05:33:32'),
|
||||
];
|
||||
|
||||
before(async () => {
|
||||
|
@ -77,10 +74,12 @@ export default function({ getService, getPageObjects }) {
|
|||
await PageObjects.visualize.navigateToNewVisualization();
|
||||
await PageObjects.visualize.clickVisualBuilder();
|
||||
await PageObjects.visualBuilder.checkVisualBuilderIsPresent();
|
||||
await PageObjects.timePicker.openQuickSelectTimeMenu();
|
||||
await testSubjects.click('superDatePickerCommonlyUsed_Last_24 hours');
|
||||
await PageObjects.visualBuilder.clickMetric();
|
||||
await PageObjects.visualBuilder.checkMetricTabIsPresent();
|
||||
await PageObjects.timePicker.setAbsoluteRange(
|
||||
'Oct 15, 2019 @ 00:00:01.000',
|
||||
'Oct 15, 2019 @ 19:31:44.000'
|
||||
);
|
||||
await PageObjects.visualBuilder.clickPanelOptions('metric');
|
||||
await PageObjects.visualBuilder.setIndexPatternValue(rollupTargetIndexName);
|
||||
await PageObjects.visualBuilder.setIntervalValue('1d');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue