Skip to content

Commit 7bb40aa

Browse files
EmmanuelDemeykyliau
authored andcommitted
fix(@schematics/angular): rename e2e PO utility function
1 parent 217639b commit 7bb40aa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/schematics/angular/e2e/files/src/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ describe('workspace-project App', () => {
99

1010
it('should display welcome message', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('Welcome to <%= relatedAppName %>!');
12+
expect(page.getTitleText()).toEqual('Welcome to <%= relatedAppName %>!');
1313
});
1414
});

packages/schematics/angular/e2e/files/src/app.po.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class AppPage {
55
return browser.get('/');
66
}
77

8-
getParagraphText() {
8+
getTitleText() {
99
return element(by.css('<%= rootSelector %> h1')).getText();
1010
}
1111
}

tests/angular_devkit/build_angular/hello-world-app/e2e/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ describe('hello-world-app App', () => {
1616

1717
it('should display welcome message', () => {
1818
page.navigateTo();
19-
expect(page.getParagraphText()).toEqual('Welcome to app!');
19+
expect(page.getTitleText()).toEqual('Welcome to app!');
2020
});
2121
});

tests/angular_devkit/build_angular/hello-world-app/e2e/app.po.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class AppPage {
1212
return browser.get('/');
1313
}
1414

15-
getParagraphText() {
15+
getTitleText() {
1616
return element(by.css('app-root h1')).getText();
1717
}
1818
}

0 commit comments

Comments
 (0)