fix(@schematics/angular): use proper project root for e2e

When creating an application, the project root was always "projects/e2e". This
is undesired as it leads to conflicts when creating another app.

Fix #12491.
This commit is contained in:
Hans 2018-10-05 10:46:29 -07:00 committed by Alex Eagle
parent 90e69805b2
commit d1b6e71b35

View File

@ -279,7 +279,7 @@ export default function (options: ApplicationOptions): Rule {
name: `${options.name}-e2e`,
relatedAppName: options.name,
rootSelector: appRootSelector,
projectRoot: newProjectRoot ? `${newProjectRoot}/e2e` : 'e2e',
projectRoot: newProjectRoot ? `${newProjectRoot}/${options.name}-e2e` : 'e2e',
};
return chain([