Added a retry for a flaky test in FF (#38845)
This commit is contained in:
parent
ffb0b06fa3
commit
51074bbc20
|
@ -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 }) {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue