2019-10-08 09:46:28 -04:00
|
|
|
import {AppPage} from '../app.po';
|
|
|
|
|
|
|
|
describe('cli-hello-world-ivy App', () => {
|
|
|
|
let page: AppPage;
|
|
|
|
beforeEach(() => {
|
|
|
|
page = new AppPage();
|
|
|
|
page.navigateTo();
|
|
|
|
});
|
|
|
|
|
2020-04-21 14:58:58 -04:00
|
|
|
it('should display title', () => {
|
|
|
|
expect(page.getHeading()).toEqual('Bonjour, cli-hello-world-ivy-compat! (inline)');
|
|
|
|
});
|
2019-10-08 09:46:28 -04:00
|
|
|
|
|
|
|
it('should display welcome message', () => {
|
|
|
|
expect(page.getParagraph('message')).toEqual('Bienvenue sur l\'application i18n. (inline)');
|
|
|
|
});
|
2019-10-23 17:49:02 -04:00
|
|
|
|
2020-04-21 14:58:58 -04:00
|
|
|
it('should display extra message', () => {
|
|
|
|
expect(page.getParagraph('extra')).toEqual('Message supplémentaire');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should display the locale', () => {
|
|
|
|
expect(page.getParagraph('locale')).toEqual('fr');
|
|
|
|
});
|
2019-10-23 17:49:02 -04:00
|
|
|
|
|
|
|
it('the date pipe should show the localized month', () => {
|
|
|
|
page.navigateTo();
|
|
|
|
expect(page.getParagraph('date')).toEqual('janvier');
|
|
|
|
});
|
2019-10-08 09:46:28 -04:00
|
|
|
});
|