retry chart selection (#116580)

This commit is contained in:
Joe Reuter 2021-11-02 17:07:10 +01:00 committed by GitHub
parent a720a021a4
commit a3b71bea01
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', () => {