[7.x] [ftr/tsvb] retry if the legent count is off (#36375) (#36391)

This commit is contained in:
Spencer 2019-05-09 18:19:06 -07:00 committed by GitHub
parent 7bee9a9996
commit 8280517349
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ import { FtrProviderContext } from '../../ftr_provider_context';
export default function({ getService, getPageObjects }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const log = getService('log');
const retry = getService('retry');
const inspector = getService('inspector');
const kibanaServer = getService('kibanaServer');
const testSubjects = getService('testSubjects');
@ -42,8 +43,10 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
});
it('should show the correct count in the legend', async () => {
const actualCount = await PageObjects.visualBuilder.getRhythmChartLegendValue();
expect(actualCount).to.be('156');
await retry.try(async () => {
const actualCount = await PageObjects.visualBuilder.getRhythmChartLegendValue();
expect(actualCount).to.be('156');
});
});
it('should show the correct count in the legend with 2h offset', async () => {