From 20f4ae37b69eec9bdfec3068a0c871e9e324c7dd Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Mon, 11 Jan 2021 11:03:44 +0200 Subject: [PATCH] [Timelion] Fix tests flakiness on suggestion click (#87273) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- test/functional/apps/timelion/_expression_typeahead.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/apps/timelion/_expression_typeahead.js b/test/functional/apps/timelion/_expression_typeahead.js index d1e974942a36..7e5ed9f3bba7 100644 --- a/test/functional/apps/timelion/_expression_typeahead.js +++ b/test/functional/apps/timelion/_expression_typeahead.js @@ -88,14 +88,14 @@ export default function ({ getPageObjects }) { const suggestions = await PageObjects.timelion.getSuggestionItemsText(); expect(suggestions.length).to.eql(52); expect(suggestions[0].includes('@message.raw')).to.eql(true); - await PageObjects.timelion.clickSuggestion(10); + await PageObjects.timelion.clickSuggestion(10, 2000); }); it('should show field suggestions for metric argument when index pattern set', async () => { await PageObjects.timelion.updateExpression(',metric'); await PageObjects.timelion.clickSuggestion(); await PageObjects.timelion.updateExpression('avg:'); - await PageObjects.timelion.clickSuggestion(); + await PageObjects.timelion.clickSuggestion(0, 2000); const suggestions = await PageObjects.timelion.getSuggestionItemsText(); expect(suggestions.length).to.eql(2); expect(suggestions[0].includes('avg:bytes')).to.eql(true);