Update gulpfile and project to add a tsconfig to protractor test folders Change all sample e2e-spec.js -> e2e-spec.ts Split typings between e2e-spec & app code Use same config for all e2e tests Only 1/3 e2e specs truly converted. Most don't pass because they fail TS transpile by Protractor due to missing type annotations
16 lines
330 B
TypeScript
16 lines
330 B
TypeScript
/// <reference path="../_protractor/e2e.d.ts" />
|
|
describe('QuickStart E2E Tests', function () {
|
|
|
|
let expectedMsg = 'My First Angular 2 App';
|
|
|
|
|
|
beforeEach(function () {
|
|
browser.get('');
|
|
});
|
|
|
|
it('should display: ' + expectedMsg, function () {
|
|
expect(element(by.css('h1')).getText()).toEqual(expectedMsg);
|
|
});
|
|
|
|
});
|