Skip to content

Commit

Permalink
Adds a wait time between setting the index pattern and the time field…
Browse files Browse the repository at this point in the history
… on tsvb
  • Loading branch information
stratoula committed Aug 11, 2020
1 parent ae52987 commit d7d6d5f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/functional/apps/visualize/_tsvb_chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const inspector = getService('inspector');
const retry = getService('retry');
const security = getService('security');
const PageObjects = getPageObjects(['visualize', 'visualBuilder', 'timePicker', 'visChart']);
const PageObjects = getPageObjects([
'visualize',
'visualBuilder',
'timePicker',
'visChart',
'common',
]);

describe('visual builder', function describeIndexTests() {
this.tags('includeFirefox');
Expand Down Expand Up @@ -132,6 +138,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await retry.tryForTime(20000, async () => {
await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
await PageObjects.visualBuilder.setIndexPatternValue('kibana_sample_data_flights');
await PageObjects.common.sleep(2500);
await PageObjects.visualBuilder.selectIndexPatternTimeField('timestamp');
});
const newValue = await PageObjects.visualBuilder.getMetricValue();
Expand Down

0 comments on commit d7d6d5f

Please sign in to comment.