Fix for Penetration test _ Session and cookie management
[vid.git] / vid-webpack-master / src / app / app.component.e2e-spec.js
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 });