fix(@schematics/angular): rename e2e PO utility function

This commit is contained in:
Emmanuel Demey 2018-10-08 13:19:37 +02:00 committed by Keen Yee Liau
parent 43aabb4be6
commit 62511a5209
4 changed files with 4 additions and 4 deletions

View File

@ -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 %>!');
});
});

View File

@ -5,7 +5,7 @@ export class AppPage {
return browser.get('/');
}
getParagraphText() {
getTitleText() {
return element(by.css('<%= rootSelector %> h1')).getText();
}
}

View File

@ -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!');
});
});

View File

@ -12,7 +12,7 @@ export class AppPage {
return browser.get('/');
}
getParagraphText() {
getTitleText() {
return element(by.css('app-root h1')).getText();
}
}