mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
17 lines
552 B
JavaScript
17 lines
552 B
JavaScript
/**
|
|
* @license
|
|
* Copyright Google LLC 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.dev/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;
|
|
};
|