2019-04-25 09:51:08 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2019-07-24 11:52:26 -04:00
|
|
|
const protractorUtils = require('@bazel/protractor/protractor-utils');
|
2019-04-25 09:51:08 -04:00
|
|
|
const protractor = require('protractor');
|
|
|
|
|
|
|
|
module.exports = async function(config) {
|
|
|
|
const {port} = await protractorUtils.runServer(config.workspace, config.server, '-port', []);
|
|
|
|
const serverUrl = `http://localhost:${port}`;
|
|
|
|
|
|
|
|
protractor.browser.baseUrl = serverUrl;
|
|
|
|
};
|