'use strict';

describe('The main view', function () {
  var page = require('./main.po');

  beforeEach(function () {
    browser.get('/index.html');
  });

  it('should have the correct title', function() {
    expect(browser.getTitle()).toEqual('Joogivanema rakendus');
  });

  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('should list more than 5 awesome things', function () {
    expect(page.thumbnailEls.count()).toBeGreaterThan(5);
  });

});
