Skip to content

Commit d5e331b

Browse files
Spencerstratoula
andauthored
[7.9] [Functional Tests] Adds a wait time between setting the index pattern and the time field on TSVB (#74736) (#78098)
* Adds a wait time between setting the index pattern and the time field on tsvb * Char by char to set indexpattern to give more time to load the time field * Add more time * uncomment commented lines Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
1 parent 26a71a4 commit d5e331b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

test/functional/apps/visualize/_tsvb_chart.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
2727
const inspector = getService('inspector');
2828
const retry = getService('retry');
2929
const security = getService('security');
30-
const PageObjects = getPageObjects(['visualize', 'visualBuilder', 'timePicker', 'visChart']);
30+
const PageObjects = getPageObjects([
31+
'visualize',
32+
'visualBuilder',
33+
'timePicker',
34+
'visChart',
35+
'common',
36+
]);
3137

3238
describe('visual builder', function describeIndexTests() {
3339
this.tags('includeFirefox');
@@ -133,6 +139,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
133139
await retry.tryForTime(20000, async () => {
134140
await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
135141
await PageObjects.visualBuilder.setIndexPatternValue('kibana_sample_data_flights');
142+
await PageObjects.common.sleep(3000);
136143
await PageObjects.visualBuilder.selectIndexPatternTimeField('timestamp');
137144
});
138145
const newValue = await PageObjects.visualBuilder.getMetricValue();

test/functional/page_objects/visual_builder_page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrPro
420420
public async setIndexPatternValue(value: string) {
421421
const el = await testSubjects.find('metricsIndexPatternInput');
422422
await el.clearValue();
423-
await el.type(value);
423+
await el.type(value, { charByChar: true });
424424
await PageObjects.header.waitUntilLoadingHasFinished();
425425
}
426426

0 commit comments

Comments
 (0)