in Pages/Payroll.js [52:59]
clickButtonAddAllocations: function(){
browser.sleep(200);
buttons.filter(function(elem, index) {
return elem.$("span").getText().then(function(text) {
return text === "Add allocation";
});
}).click();
},