test: add i18n to cli-hello-world integration test (#23527)

PR Close #23527
This commit is contained in:
Olivier Combe
2018-04-24 20:30:23 +02:00
committed by Igor Minar
parent 2e5457c824
commit 3e92b22258
9 changed files with 110 additions and 98 deletions

View File

@ -11,4 +11,9 @@ describe('cli-hello-world App', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
it('the percent pipe should work', () => {
page.navigateTo();
expect(page.getPipeContent()).toEqual('100 % awesome');
})
});

View File

@ -8,4 +8,8 @@ export class AppPage {
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
getPipeContent() {
return element(by.css('app-root p')).getText();
}
}