From 17a7b5980bea35761a8c9a42e25c627d431aa371 Mon Sep 17 00:00:00 2001 From: Marco Liberati Date: Fri, 13 Dec 2024 12:31:58 +0100 Subject: [PATCH] [8.x] [Lens] Stabilize FTR test (#202476) (#203970) # Backport This will backport the following commits from `main` to `8.x`: - [[Lens] Stabilize FTR test (#202476)](https://github.com/elastic/kibana/pull/202476) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> --- .../functional/apps/lens/group2/persistent_context.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/x-pack/test/functional/apps/lens/group2/persistent_context.ts b/x-pack/test/functional/apps/lens/group2/persistent_context.ts index 0d34b0f68564..601881dbd002 100644 --- a/x-pack/test/functional/apps/lens/group2/persistent_context.ts +++ b/x-pack/test/functional/apps/lens/group2/persistent_context.ts @@ -75,9 +75,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await listingTable.searchForItemWithName('lnsTableVis'); await lens.clickVisualizeListItemTitle('lnsTableVis'); await lens.goToTimeRange(); - await navigationalSearch.focus(); - await navigationalSearch.searchFor('type:application lens'); - await navigationalSearch.clickOnOption(0); + await retry.try(async () => { + await navigationalSearch.focus(); + await navigationalSearch.searchFor('type:application lens'); + await navigationalSearch.clickOnOption(0); + }); await lens.waitForEmptyWorkspace(); await lens.switchToVisualization('lnsLegacyMetric'); await lens.dragFieldToWorkspace('@timestamp', 'legacyMtrVis');