From 1ec21f143ec9306026a9f526a6701c20ed70ef91 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Mon, 21 Nov 2022 09:59:33 +0200 Subject: [PATCH] [TSVB] Unskips functional tests and fix flakiness --- test/functional/apps/visualize/group5/_tsvb_time_series.ts | 5 +---- test/functional/page_objects/visual_builder_page.ts | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/functional/apps/visualize/group5/_tsvb_time_series.ts b/test/functional/apps/visualize/group5/_tsvb_time_series.ts index 83342d5042ee7..fb59d947b6790 100644 --- a/test/functional/apps/visualize/group5/_tsvb_time_series.ts +++ b/test/functional/apps/visualize/group5/_tsvb_time_series.ts @@ -28,10 +28,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { const browser = getService('browser'); const kibanaServer = getService('kibanaServer'); - // Failing: See https://github.com/elastic/kibana/issues/145563 - // Failing: See https://github.com/elastic/kibana/issues/145560 - // Failing: See https://github.com/elastic/kibana/issues/139096 - describe.skip('visual builder', function describeIndexTests() { + describe('visual builder', function describeIndexTests() { before(async () => { await security.testUser.setRoles([ 'kibana_admin', diff --git a/test/functional/page_objects/visual_builder_page.ts b/test/functional/page_objects/visual_builder_page.ts index 1aacde4127f37..a9971f27c968f 100644 --- a/test/functional/page_objects/visual_builder_page.ts +++ b/test/functional/page_objects/visual_builder_page.ts @@ -824,7 +824,8 @@ export class VisualBuilderPageObject extends FtrService { public async setMetricsGroupBy(option: string) { const groupBy = await this.testSubjects.find('groupBySelect'); - await this.comboBox.setElement(groupBy, option, { clickWithMouse: true }); + await this.comboBox.setElement(groupBy, option); + return await this.header.waitUntilLoadingHasFinished(); } public async setMetricsGroupByTerms(