mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
894c1c5f10
Apply prettier formatting to integration directories PR Close #54653
34 lines
861 B
TypeScript
34 lines
861 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');
|
|
});
|
|
|
|
it('should display the locale', () => {
|
|
expect(page.getParagraph('locale')).toEqual('fr');
|
|
});
|
|
|
|
it('the date pipe should show the localized month', () => {
|
|
page.navigateTo();
|
|
expect(page.getParagraph('date')).toEqual('janvier');
|
|
});
|
|
});
|