2019-08-27 16:17:51 -04:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 15:08:49 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2019-08-27 16:17:51 -04:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
const protractorUtils = require('@bazel/protractor/protractor-utils');
|
|
|
|
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;
|
|
|
|
};
|