[TSVB] Fix flaky test (#154519)

## Summary

Closes https://github.com/elastic/kibana/issues/154372

Runner 100 times
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2094

I dont think that this test is super flaky. I just added the waiting
after clicking the seriesOption as I guess it might make it even more
stable
This commit is contained in:
Stratoula Kalafateli 2023-04-10 08:57:18 +03:00 committed by GitHub
parent 2750b0e843
commit b3b4441111
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,6 +88,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await visualBuilder.setStaticValue(10);
await header.waitUntilLoadingHasFinished();
await visualBuilder.clickSeriesOption();
await header.waitUntilLoadingHasFinished();
await visualBuilder.setFieldForAggregateBy('bytes');
await visualBuilder.setFunctionForAggregateFunction('Sum');
await header.waitUntilLoadingHasFinished();