In our end-to-end tests, we dynamically generate the URL endpoint for us to test against. In our Protractor configuration, I was hoping to use beforeLaunch or onPrepare to retrieve the URL endpoint and set it to baseUrl before running our tests. However it seems no matter what I try, Protractor continues running tests before baseUrl is set.
We're using Protractor version 1.4.0. This is a simple configuration file demonstrating the issue: exports.config = directConnect: true framework: 'jasmine' jasmineNodeOpts: isVerbose: true showColors: true includeStackTrace: true suites: login: 'login/**/*.coffee' full: '**/*.coffee' capabilities: browserName: 'chrome' beforeLaunch: -> setBaseUrl 'https://test-url.com' onPrepare: -> setBaseUrl 'https://test-url.com' setBaseUrl = (baseUrl) -> exports.config.baseUrl = baseUrl Thanks for the help! -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
