import { browser , by , element } from 'protractor' ; describe ( 'App' , ( ) => { beforeEach ( ( ) => { browser . get ( '/' ) ; } ) ; it ( 'should have a title' , ( ) => { let subject = browser . getTitle ( ) ; let result = 'Angular2 Webpack Starter by @gdi2290 from @AngularClass' ; expect ( subject ) . toEqual ( result ) ; } ) ; it ( 'should have header' , ( ) => { let subject = element ( by . css ( 'h1' ) ) . isPresent ( ) ; let result = true ; expect ( subject ) . toEqual ( result ) ; } ) ; it ( 'should have <home>' , ( ) => { let subject = element ( by . css ( 'app home' ) ) . isPresent ( ) ; let result = true ; expect ( subject ) . toEqual ( result ) ; } ) ; it ( 'should have buttons' , ( ) => { let subject = element ( by . css ( 'button' ) ) . getText ( ) ; let result = 'Submit Value' ; expect ( subject ) . toEqual ( result ) ; } ) ; } ) ;