Skip to content

Commit

Permalink
fix(@schematics/angular): rename e2e PO utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey authored and kyliau committed Nov 14, 2018
1 parent 217639b commit 7bb40aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/schematics/angular/e2e/files/src/app.e2e-spec.ts
Expand Up @@ -9,6 +9,6 @@ describe('workspace-project App', () => {

it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to <%= relatedAppName %>!');
expect(page.getTitleText()).toEqual('Welcome to <%= relatedAppName %>!');
});
});
2 changes: 1 addition & 1 deletion packages/schematics/angular/e2e/files/src/app.po.ts
Expand Up @@ -5,7 +5,7 @@ export class AppPage {
return browser.get('/');
}

getParagraphText() {
getTitleText() {
return element(by.css('<%= rootSelector %> h1')).getText();
}
}
Expand Up @@ -16,6 +16,6 @@ describe('hello-world-app App', () => {

it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
expect(page.getTitleText()).toEqual('Welcome to app!');
});
});
Expand Up @@ -12,7 +12,7 @@ export class AppPage {
return browser.get('/');
}

getParagraphText() {
getTitleText() {
return element(by.css('app-root h1')).getText();
}
}

0 comments on commit 7bb40aa

Please sign in to comment.