File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11import { ng , killAllProcesses } from '../../utils/process' ;
22import { expectToFail } from '../../utils/utils' ;
33import { ngServe } from '../../utils/project' ;
4+ import { replaceInFile } from "../../utils/fs" ;
45
56
67function _runServeAndE2e ( ...args : string [ ] ) {
@@ -20,5 +21,11 @@ export default function() {
2021 . then ( ( ) => _runServeAndE2e ( '--prod' ) )
2122 . then ( ( ) => _runServeAndE2e ( '--aot' ) )
2223 . then ( ( ) => _runServeAndE2e ( '--aot' , '--prod' ) )
24+ // this should fail because we haven't changed the e2e test yet
25+ . then ( ( ) => expectToFail ( ( ) => _runServeAndE2e ( '--base-href /test-base-href/' ) ) )
26+ . then ( ( ) => replaceInFile ( 'e2e/app.po.ts' ,
27+ 'browser.get(\'/\');' ,
28+ 'browser.get(\'/test-base-href/\');' ) )
29+ // now it should pass
2330 . then ( ( ) => _runServeAndE2e ( '--base-href /test-base-href/' ) ) ;
2431}
You can’t perform that action at this time.
0 commit comments