You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
586 B
JavaScript
22 lines
586 B
JavaScript
'use strict';
|
|
|
|
describe('The main view', function () {
|
|
var page;
|
|
|
|
beforeEach(function () {
|
|
browser.get('http://localhost:3000/index.html');
|
|
page = require('./main.po');
|
|
});
|
|
|
|
it('should include jumbotron with correct data', function() {
|
|
expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
|
|
expect(page.imgEl.getAttribute('src')).toMatch(/assets\/images\/yeoman.png$/);
|
|
expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
|
|
});
|
|
|
|
it('list more than 5 awesome things', function () {
|
|
expect(page.thumbnailEls.count()).toBeGreaterThan(5);
|
|
});
|
|
|
|
});
|