From b3b44411111e9c1a3ed1ccffed72cd98dfee7408 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Mon, 10 Apr 2023 08:57:18 +0300 Subject: [PATCH] [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 --- x-pack/test/functional/apps/lens/open_in_lens/tsvb/table.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/test/functional/apps/lens/open_in_lens/tsvb/table.ts b/x-pack/test/functional/apps/lens/open_in_lens/tsvb/table.ts index 29884da19a1fa..9d3112fc59374 100644 --- a/x-pack/test/functional/apps/lens/open_in_lens/tsvb/table.ts +++ b/x-pack/test/functional/apps/lens/open_in_lens/tsvb/table.ts @@ -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();