Logo
Explore Help
Sign In
iSharkFly-Docs/angular-docs-cn
1
0
Fork 0
You've already forked angular-docs-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
angular-docs-cn/public/docs/_examples/homepage-todo/e2e-spec.ts

15 lines
353 B
TypeScript
Raw Normal View History

chore: support e2e-specs written in TypeScript 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
2016-05-30 11:05:09 -07:00
/// <reference path="../_protractor/e2e.d.ts" />
docs(homepage): examples conform to std + e2e tests closes #740
2016-01-22 02:40:37 -08:00
describe('Homepage Todo', function () {
beforeAll(function () {
browser.get('');
});
// Does it even launch?
chore: support e2e-specs written in TypeScript 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
2016-05-30 11:05:09 -07:00
let expectedAppTitle = 'Todo';
docs(homepage): examples conform to std + e2e tests closes #740
2016-01-22 02:40:37 -08:00
it('should display app title: ' + expectedAppTitle, function () {
expect(element(by.css('h2')).getText()).toEqual(expectedAppTitle);
});
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 73ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API