File tree 2 files changed +7
-0
lines changed
packages/@angular/cli/tasks
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({
34
34
} ) ;
35
35
} else if ( e2eTaskOptions . baseHref ) {
36
36
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
+ } ) ;
37
43
}
38
44
39
45
if ( e2eTaskOptions . specs . length !== 0 ) {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export default function () {
13
13
. then ( ( ) => ngServe ( ) )
14
14
. then ( ( ) => expectToFail ( ( ) => ng ( 'e2e' , '--no-serve' ) ) )
15
15
. then ( ( ) => ng ( 'e2e' , '--no-serve' , '--base-href=http://localhost:4400' ) )
16
+ . then ( ( ) => ng ( 'e2e' , '--no-serve' , '--port=4400' ) )
16
17
. then ( ( ) => killAllProcesses ( ) , ( err : any ) => {
17
18
killAllProcesses ( ) ;
18
19
throw err ;
You can’t perform that action at this time.
0 commit comments