angular-cn/integration/cli-hello-world-ivy-i18n/e2e/runtime/app.e2e-spec.ts

23 lines
602 B
TypeScript

import {AppPage} from '../app.po';
describe('cli-hello-world-ivy App', () => {
let page: AppPage;
beforeEach(() => { page = new AppPage(); });
it('should display title', () => {
page.navigateTo();
expect(page.getHeading()).toEqual('Bonjour cli-hello-world-ivy-compat!');
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraph('message')).toEqual('Bienvenue sur l\'application i18n.');
});
it('the percent pipe should work', () => {
page.navigateTo();
expect(page.getParagraph('pipe')).toEqual('100 % awesome');
});
});