forked from PatrickJS/PatrickJS-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.e2e.js
More file actions
35 lines (28 loc) · 946 Bytes
/
app.e2e.js
File metadata and controls
35 lines (28 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* TODO: ES5 for now until I make a webpack plugin for protractor
*/
describe('App', function() {
beforeEach(function() {
browser.get('/');
});
it('should have a title', function() {
var subject = browser.getTitle();
var result = 'Angular2 Webpack Starter by @gdi2990 from @AngularClass';
expect(subject).toEqual(result);
});
it('should have <header>', function() {
var subject = element(by.deepCss('app /deep/ header')).isPresent();
var result = true;
expect(subject).toEqual(result);
});
it('should have <main>', function() {
var subject = element(by.deepCss('app /deep/ main')).isPresent();
var result = true;
expect(subject).toEqual(result);
});
it('should have <footer>', function() {
var subject = element(by.deepCss('app /deep/ footer')).getText();
var result = 'WebPack Angular 2 Starter by @AngularClass';
expect(subject).toEqual(result);
});
});