retry chart selection (#116580) (#117167)

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
This commit is contained in:
Kibana Machine 2021-11-02 14:17:20 -04:00 committed by GitHub
parent b7ec4ec252
commit 190d5d544e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,8 +16,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const retry = getService('retry');
async function checkData() {
const data = await elasticChart.getChartDebugData();
expect(data!.bars![0].bars.length).to.eql(24);
await retry.try(async () => {
const data = await elasticChart.getChartDebugData();
expect(data!.bars![0].bars.length).to.eql(24);
});
}
describe('show and save', () => {