| 
									
										
										
										
											2019-02-01 14:46:38 +01: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 08:52:26 -07:00
										 |  |  | const protractorUtils = require('@bazel/protractor/protractor-utils'); | 
					
						
							| 
									
										
										
										
											2019-02-01 14:46:38 +01: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; | 
					
						
							|  |  |  | }; |