1 describe('App', function () {
3 beforeEach(function () {
7 it('should have a title', function () {
8 expect(browser.getTitle()).toEqual("Angular 2 App | ng2-webpack");
11 it('should have <header>', function () {
12 expect(element(by.css('my-app header')).isPresent()).toEqual(true);
15 it('should have <main>', function () {
16 expect(element(by.css('my-app main')).isPresent()).toEqual(true);
19 it('should have a main title', function () {
20 expect(element(by.css('main h1')).getText()).toEqual('Hello from Angular 2!');
23 it('should have <footer>', function () {
24 expect(element(by.css('my-app footer')).getText()).toEqual("Webpack Angular 2 Starter");