Use `configureHttp` to set baseUrl for tests

This commit is contained in:
Brett Sun 2016-01-25 17:55:45 +01:00
parent ebb8248364
commit 0fefba549c
1 changed files with 2 additions and 1 deletions

View File

@ -24,8 +24,9 @@ function testSuite(browserName, version, platform) {
// Start the browser, go to /login, and wait for the react app to render
return browser
.configureHttp({ baseUrl: config.APP_URL })
.init({ browserName, version, platform })
.get(config.APP_URL + '/login')
.get('/login')
.waitForElementByCss('.ascribe-default-app', asserters.isDisplayed, 10000)
.catch(function (err) {
console.log('Failure -- unable to load app.');