1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-13 11:41:50 +00:00
ansible-playable/e2e/main/main.spec.js
Mumshad Mannambeth c92f737237 Initial Commit
2017-06-07 13:36:45 -04:00

19 lines
554 B
JavaScript

'use strict';
var config = browser.params;
describe('Main View', function() {
var page;
beforeEach(function() {
let promise = browser.get(config.baseUrl + '/');
page = require('./main.po');
return promise;
});
it('should include jumbotron with correct data', function() {
expect(page.h1El.getText()).to.eventually.equal('\'Allo, \'Allo!');
expect(page.imgEl.getAttribute('src')).to.eventually.match(/yeoman(\.[a-zA-Z0-9]*)?\.png$/);
expect(page.imgEl.getAttribute('alt')).to.eventually.equal('I\'m Yeoman');
});
});