Skip to content

Commit

Permalink
[Functional] Add retry on custom formatter test (#78729) (#79250)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
stratoula and elasticmachine authored Oct 2, 2020
1 parent ec6fd9e commit ac57149
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/functional/apps/visualize/_tsvb_time_series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

await visualBuilder.clickSeriesOption();
await visualBuilder.enterSeriesTemplate('$ {{value}}');
const actualCount = await visualBuilder.getRhythmChartLegendValue();
expect(actualCount).to.be(expectedLegendValue);
await retry.try(async () => {
const actualCount = await visualBuilder.getRhythmChartLegendValue();
expect(actualCount).to.be(expectedLegendValue);
});
});

it('should show the correct count in the legend with percent formatter', async () => {
Expand Down

0 comments on commit ac57149

Please sign in to comment.