From 581d2e87c48457a3972c4dc15653d04046caf351 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Wed, 28 Jul 2021 09:06:44 +0300 Subject: [PATCH] [Timelion app] Stabilize the flakiness in cloud (#106826) --- .../apps/timelion/_expression_typeahead.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/functional/apps/timelion/_expression_typeahead.js b/test/functional/apps/timelion/_expression_typeahead.js index b81542cb9a28a..3b29e9a44a77b 100644 --- a/test/functional/apps/timelion/_expression_typeahead.js +++ b/test/functional/apps/timelion/_expression_typeahead.js @@ -54,8 +54,7 @@ export default function ({ getPageObjects }) { }); it('should show index pattern suggestions for index argument', async () => { - await PageObjects.timelion.updateExpression('index'); - await PageObjects.timelion.clickSuggestion(); + await PageObjects.timelion.updateExpression('index='); const suggestions = await PageObjects.timelion.getSuggestionItemsText(); expect(suggestions.length).to.eql(1); expect(suggestions[0].includes('logstash-*')).to.eql(true); @@ -63,8 +62,7 @@ export default function ({ getPageObjects }) { }); it('should show field suggestions for timefield argument when index pattern set', async () => { - await PageObjects.timelion.updateExpression(',timefield'); - await PageObjects.timelion.clickSuggestion(); + await PageObjects.timelion.updateExpression(',timefield='); const suggestions = await PageObjects.timelion.getSuggestionItemsText(); expect(suggestions.length).to.eql(4); expect(suggestions[0].includes('@timestamp')).to.eql(true); @@ -72,8 +70,7 @@ export default function ({ getPageObjects }) { }); it('should show field suggestions for split argument when index pattern set', async () => { - await PageObjects.timelion.updateExpression(',split'); - await PageObjects.timelion.clickSuggestion(); + await PageObjects.timelion.updateExpression(',split='); const suggestions = await PageObjects.timelion.getSuggestionItemsText(); expect(suggestions.length).not.to.eql(0); expect(suggestions[0].includes('@message.raw')).to.eql(true); @@ -81,8 +78,7 @@ export default function ({ getPageObjects }) { }); 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(',metric='); await PageObjects.timelion.updateExpression('avg:'); await PageObjects.timelion.clickSuggestion(0); const suggestions = await PageObjects.timelion.getSuggestionItemsText();