Skip to content

Commit

Permalink
[Timelion] Fix tests flakiness on suggestion click (#87273) (#87803)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
stratoula and kibanamachine authored Jan 11, 2021
1 parent 1a5eae3 commit 4d2937b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/apps/timelion/_expression_typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d2937b

Please sign in to comment.