feat(scripts): add framework to test protractor

nit: there's some spaces after `function` here and below.