summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/e2e/main/main.spec.js
blob: 61745a8deaf9d8a47c1956f5572e70af0a09653c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';

describe('Main View', function() {
  var page;

  beforeEach(function() {
    browser.get('/');
    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');
  });
});