Commit 5066bde36178cf071e959d580ba250c39bc29be6
1 parent
37001bea
Exists in
master
and in
8 other branches
Remove old files
Showing
2 changed files
with
0 additions
and
36 deletions
Show diff stats
e2e/main.po.js
@@ -1,15 +0,0 @@ | @@ -1,15 +0,0 @@ | ||
1 | -/** | ||
2 | - * This file uses the Page Object pattern to define the main page for tests | ||
3 | - * https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ | ||
4 | - */ | ||
5 | - | ||
6 | -'use strict'; | ||
7 | - | ||
8 | -var MainPage = function() { | ||
9 | - this.jumbEl = element(by.css('.jumbotron')); | ||
10 | - this.h1El = this.jumbEl.element(by.css('h1')); | ||
11 | - this.imgEl = this.jumbEl.element(by.css('img')); | ||
12 | - this.thumbnailEls = element(by.css('body')).all(by.repeater('awesomeThing in main.awesomeThings')); | ||
13 | -}; | ||
14 | - | ||
15 | -module.exports = new MainPage(); |
e2e/main.spec.js
@@ -1,21 +0,0 @@ | @@ -1,21 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -describe('The main view', function () { | ||
4 | - var page; | ||
5 | - | ||
6 | - beforeEach(function () { | ||
7 | - browser.get('/index.html'); | ||
8 | - page = require('./main.po'); | ||
9 | - }); | ||
10 | - | ||
11 | - it('should include jumbotron with correct data', function() { | ||
12 | - expect(page.h1El.getText()).toBe('\'Allo, \'Allo!'); | ||
13 | - expect(page.imgEl.getAttribute('src')).toMatch(/assets\/images\/yeoman.png$/); | ||
14 | - expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman'); | ||
15 | - }); | ||
16 | - | ||
17 | - it('should list more than 5 awesome things', function () { | ||
18 | - expect(page.thumbnailEls.count()).toBeGreaterThan(5); | ||
19 | - }); | ||
20 | - | ||
21 | -}); |