diff --git a/addon/ng2/blueprints/ng2/files/e2e/app.e2e-spec.ts b/addon/ng2/blueprints/ng2/files/e2e/app.e2e-spec.ts index 5b020693bc2a..2d9a848286c8 100644 --- a/addon/ng2/blueprints/ng2/files/e2e/app.e2e-spec.ts +++ b/addon/ng2/blueprints/ng2/files/e2e/app.e2e-spec.ts @@ -9,6 +9,6 @@ describe('<%= htmlComponentName %> App', function() { it('should display message saying app works', () => { page.navigateTo(); - expect(page.getParagraphText()).toEqual('<%= htmlComponentName %> works!'); + expect(page.getParagraphText()).toEqual('<%= prefix %> works!'); }); }); diff --git a/addon/ng2/blueprints/ng2/files/e2e/app.po.ts b/addon/ng2/blueprints/ng2/files/e2e/app.po.ts index c68572d8a7d9..b83fa858daf6 100644 --- a/addon/ng2/blueprints/ng2/files/e2e/app.po.ts +++ b/addon/ng2/blueprints/ng2/files/e2e/app.po.ts @@ -4,6 +4,6 @@ export class <%= jsComponentName %>Page { } getParagraphText() { - return element(by.css('<%= htmlComponentName %>-app h1')).getText(); + return element(by.css('<%= prefix %>-root h1')).getText(); } }