[TSVB] Add retry to remove flakiness (#104046) (#104277)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Stratoula Kalafateli 2021-07-05 13:52:28 +03:00 committed by GitHub
parent 365b342f57
commit e4c21ebf07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -447,7 +447,9 @@ export class VisualBuilderPageObject extends FtrService {
const metricsIndexPatternInput = 'metricsIndexPatternInput';
if (useKibanaIndices !== undefined) {
await this.switchIndexPatternSelectionMode(useKibanaIndices);
await this.retry.try(async () => {
await this.switchIndexPatternSelectionMode(useKibanaIndices);
});
}
if (useKibanaIndices === false) {