Skip to content

Commit

Permalink
[Functional] Add retry on custom formatter test (#78729)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
stratoula and elasticmachine committed Oct 2, 2020
1 parent e92a4ab commit 1b61cc6
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 1b61cc6

Please sign in to comment.