2019-01-28 20:59:25 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
2020-05-19 19:08:49 +00:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2019-01-28 20:59:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
2024-09-20 15:23:15 +00:00
|
|
|
* found in the LICENSE file at https://angular.dev/license
|
2019-01-28 20:59:25 +00:00
|
|
|
*/
|
|
|
|
|
|
2019-07-24 15:52:26 +00:00
|
|
|
const protractorUtils = require('@bazel/protractor/protractor-utils');
|
2019-01-28 20:59:25 +00:00
|
|
|
const protractor = require('protractor');
|
|
|
|
|
|
2024-01-30 18:04:57 +00:00
|
|
|
module.exports = async function (config) {
|
2022-12-14 11:38:07 +00:00
|
|
|
const {port} = await protractorUtils.runServer(config.workspace, config.server, '--port', []);
|
2019-01-28 20:59:25 +00:00
|
|
|
const serverUrl = `http://localhost:${port}`;
|
|
|
|
|
|
|
|
|
|
protractor.browser.baseUrl = serverUrl;
|
|
|
|
|
};
|