ng e2e --no-serve fails when baseHref defined in config. #7753
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
severity3: broken
type: bug/fix
Uh oh!
There was an error while loading. Please reload this page.
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
ng new tempname
ng set defaults.build.baseHref /some/path
browser.get('/some/path')
or some other address that should be validng e2e
(note that the test is successful)ng serve
ng e2e --no-serve
The log given by the failure.
Desired functionality.
The correct base URL should have been built based on the default port for
ng serve
.Mention any other details that might be useful.
Workaround is to explicitly specify the full base URL in the command:
ng e2e --no-serve --base-href http://localhost:4200/some/path/
The text was updated successfully, but these errors were encountered: