TwoToc code
[YouAndWeb_TwoToc] / e2e / main / main.spec.js
1 'use strict';
2
3 var config = browser.params;
4
5 describe('Main View', function() {
6   var page;
7
8   beforeEach(function() {
9     browser.get(config.baseUrl + '/');
10     page = require('./main.po');
11   });
12
13   it('should include jumbotron with correct data', function() {
14     expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
15     expect(page.imgEl.getAttribute('src')).toMatch(/yeoman.png$/);
16     expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
17   });
18 });