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

19 lines
617 B
TypeScript
Raw Normal View History

import {AppPage} from '../app.po';
describe('cli-hello-world-ivy App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
page.navigateTo();
});
it('should display translated title',
() => { expect(page.getHeading()).toEqual('Bonjour cli-hello-world-ivy-compat!'); });
it('should display untranslated welcome message', () => {
// This message does not get translated because we did not provide a translation for it
// See "translated:legacy:extract-and-update" in package.json.
expect(page.getParagraph('message')).toEqual('Welcome to the i18n app.');
});
});