Added a retry for a flaky test in FF (#38845)

This commit is contained in:
igoristic 2019-06-13 11:58:00 -04:00 committed by GitHub
parent ffb0b06fa3
commit 51074bbc20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ export default function ({ getService, getPageObjects }) {
const indicesList = getService('monitoringElasticsearchIndices');
const nodesList = getService('monitoringElasticsearchNodes');
const shards = getService('monitoringElasticsearchShards');
const retry = getService('retry');
describe('Elasticsearch shard legends', () => {
const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects);
@ -153,6 +154,7 @@ export default function ({ getService, getPageObjects }) {
it('yellow status index with single unallocated shard', async () => {
await indicesList.clickRowByName('phone-home');
await retry.try(async () => {
expect(await shards.getUnassignedIndexAllocation()).to.eql([
{ classification: 'shard replica unassigned 1', tooltip: 'Unassigned', },
]);
@ -185,6 +187,6 @@ export default function ({ getService, getPageObjects }) {
});
});
});
});
});
}