Fix one recurring timing related test failure by wrapping in tryForTime loop ('makelogs data should have expected number of fields').

This commit is contained in:
LeeDr 2015-11-20 15:24:49 -06:00
parent 2488a626e2
commit e5d57f42a3

View file

@ -93,9 +93,11 @@ define(function (require) {
});
bdd.it('makelogs data should have expected number of fields', function () {
return settingsPage.getFieldsTabCount()
.then(function (tabCount) {
expect(tabCount).to.be('' + expectedFieldCount);
return common.tryForTime(5000, function () {
return settingsPage.getFieldsTabCount()
.then(function (tabCount) {
expect(tabCount).to.be('' + expectedFieldCount);
});
})
.catch(common.handleError(this));
});