docs(aio): Upgrade examples to Angular 6 (#23234)

PR Close #23234
This commit is contained in:
Brandon Roberts
2018-04-12 21:20:01 -05:00
committed by Jason Aden
parent 6274007e3b
commit 8953f123e3
65 changed files with 1360 additions and 832 deletions

View File

@ -0,0 +1,30 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor';
describe('Set Document Title', function () {
beforeAll(function () {
browser.get('');
});
it('should set the document title', function () {
let titles = [
'Good morning!',
'Good afternoon!',
'Good evening!'
];
element.all( by.css( 'ul li a' ) ).each(
function iterator( element: ElementFinder, i: number ) {
element.click();
expect( browser.getTitle() ).toEqual( titles[ i ] );
}
);
});
});