feat(scripts): add framework to test protractor

Is there a reason this isn't written as
`for (var i = 0; i < actualErrors....`
?