Skip to content

Commit

Permalink
[Timelion] Fix tests flakiness on suggestion click (elastic#87273)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
stratoula and kibanamachine committed Jan 11, 2021
1 parent 1a5eae3 commit 42008ac
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 42008ac

Please sign in to comment.