File tree 2 files changed +15
-3
lines changed
packages/@angular/cli/commands
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,19 @@ const E2eCommand = Command.extend({
56
56
} ) ;
57
57
58
58
// Protractor will end the proccess, so we don't need to kill the dev server
59
- return serve . run ( commandOptions , ( ) => e2eTask . run ( commandOptions ) ) ;
59
+ return new Promise ( ( resolve , reject ) => {
60
+ let firstRebuild = true ;
61
+ function rebuildCb ( ) {
62
+ // don't run re-run tests on subsequent rebuilds
63
+ if ( firstRebuild ) {
64
+ firstRebuild = false ;
65
+ return resolve ( e2eTask . run ( commandOptions ) ) ;
66
+ }
67
+ }
68
+
69
+ serve . run ( commandOptions , rebuildCb )
70
+ . catch ( reject ) ;
71
+ } ) ;
60
72
} else {
61
73
return e2eTask . run ( commandOptions ) ;
62
74
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default function () {
15
15
} ] ,
16
16
e2e : { protractor : { config : './protractor.conf.js' } }
17
17
} ) ) )
18
- . then ( ( ) => ng ( 'e2e' ) )
18
+ . then ( ( ) => ng ( 'e2e' , '--no-progress' ) )
19
19
. then ( ( ) => writeMultipleFiles ( {
20
20
'./src/script.js' : `
21
21
document.querySelector('app-root').innerHTML = '<h1>app works!</h1>';
@@ -40,5 +40,5 @@ export default function () {
40
40
e2e : { protractor : { config : './protractor.conf.js' } }
41
41
} ) ,
42
42
} ) )
43
- . then ( ( ) => ng ( 'e2e' ) ) ;
43
+ . then ( ( ) => ng ( 'e2e' , '--no-progress' ) ) ;
44
44
}
You can’t perform that action at this time.
0 commit comments