I\'m using protractor with angularjs to create my e2e tests. I have many files for which my specs array is quite big and I want to share a common function across all files.
This works wonderfully...Just make sure you properly terminate the previous config params by using proper delimiter ',' .
exports.config = { seleniumAddress: **,** onPrepare: function() { browser.driver.manage().window().maximize(); }**,** baseUrl: }