File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/@angular/cli/tasks Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ export const E2eTask = Task.extend({
3434 } ) ;
3535 } else if ( e2eTaskOptions . baseHref ) {
3636 additionalProtractorConfig . baseUrl = e2eTaskOptions . baseHref ;
37+ } else if ( e2eTaskOptions . port ) {
38+ additionalProtractorConfig . baseUrl = url . format ( {
39+ protocol : e2eTaskOptions . ssl ? 'https' : 'http' ,
40+ hostname : e2eTaskOptions . host ,
41+ port : e2eTaskOptions . port . toString ( )
42+ } ) ;
3743 }
3844
3945 if ( e2eTaskOptions . specs . length !== 0 ) {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export default function () {
1313 . then ( ( ) => ngServe ( ) )
1414 . then ( ( ) => expectToFail ( ( ) => ng ( 'e2e' , '--no-serve' ) ) )
1515 . then ( ( ) => ng ( 'e2e' , '--no-serve' , '--base-href=http://localhost:4400' ) )
16+ . then ( ( ) => ng ( 'e2e' , '--no-serve' , '--port=4400' ) )
1617 . then ( ( ) => killAllProcesses ( ) , ( err : any ) => {
1718 killAllProcesses ( ) ;
1819 throw err ;
You can’t perform that action at this time.
0 commit comments