Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | describe('App', function () { |
| 2 | |
| 3 | beforeEach(function () { |
| 4 | browser.get('/'); |
| 5 | }); |
| 6 | |
| 7 | it('should have a title', function () { |
| 8 | expect(browser.getTitle()).toEqual("Angular 2 App | ng2-webpack"); |
| 9 | }); |
| 10 | |
| 11 | it('should have <header>', function () { |
| 12 | expect(element(by.css('my-app header')).isPresent()).toEqual(true); |
| 13 | }); |
| 14 | |
| 15 | it('should have <main>', function () { |
| 16 | expect(element(by.css('my-app main')).isPresent()).toEqual(true); |
| 17 | }); |
| 18 | |
| 19 | it('should have a main title', function () { |
| 20 | expect(element(by.css('main h1')).getText()).toEqual('Hello from Angular 2!'); |
| 21 | }); |
| 22 | |
| 23 | it('should have <footer>', function () { |
| 24 | expect(element(by.css('my-app footer')).getText()).toEqual("Webpack Angular 2 Starter"); |
| 25 | }); |
| 26 | |
| 27 | }); |