docs(aio): add examples to test cookbook doc

This commit is contained in:
Peter Bacon Darwin
2017-01-31 22:31:55 +00:00
committed by Igor Minar
parent 41db177d0c
commit bcba0332a6
35 changed files with 714 additions and 0 deletions

View File

@ -0,0 +1,21 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor';
describe('QuickStart E2E Tests', function () {
let expectedMsg = 'Hello from Angular App with Webpack';
beforeEach(function () {
browser.get('');
});
it(`should display: ${expectedMsg}`, function () {
expect(element(by.css('h1')).getText()).toEqual(expectedMsg);
});
it('should display an image', function () {
expect(element(by.css('img')).isPresent()).toBe(true);
});
});