mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
fix(@schematics/angular): rename e2e PO utility function
This commit is contained in:
parent
43aabb4be6
commit
62511a5209
@ -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 %>!');
|
||||
});
|
||||
});
|
||||
|
@ -5,7 +5,7 @@ export class AppPage {
|
||||
return browser.get('/');
|
||||
}
|
||||
|
||||
getParagraphText() {
|
||||
getTitleText() {
|
||||
return element(by.css('<%= rootSelector %> h1')).getText();
|
||||
}
|
||||
}
|
||||
|
@ -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!');
|
||||
});
|
||||
});
|
||||
|
@ -12,7 +12,7 @@ export class AppPage {
|
||||
return browser.get('/');
|
||||
}
|
||||
|
||||
getParagraphText() {
|
||||
getTitleText() {
|
||||
return element(by.css('app-root h1')).getText();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user