2015-08-08 16:55:53 -04:00
|
|
|
/*global browser, element, by */
|
2015-09-09 22:19:41 -04:00
|
|
|
describe('Getting Started E2E Tests', function () {
|
2015-08-08 16:55:53 -04:00
|
|
|
|
|
|
|
// #docregion shared
|
|
|
|
var expectedMsg = 'My First Angular 2 App';
|
|
|
|
|
|
|
|
// tests shared across languages
|
|
|
|
function sharedTests(basePath) {
|
|
|
|
beforeEach(function () {
|
|
|
|
browser.get(basePath + 'index.html');
|
|
|
|
});
|
|
|
|
|
2015-09-09 22:19:41 -04:00
|
|
|
it('should display: ' + expectedMsg, function () {
|
2015-08-08 16:55:53 -04:00
|
|
|
expect(element(by.id('output')).getText()).toEqual(expectedMsg);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// #enddocregion
|
|
|
|
|
2015-09-09 22:19:41 -04:00
|
|
|
describe('Getting Started in JavaScript', function () {
|
2015-08-08 16:55:53 -04:00
|
|
|
sharedTests('gettingstarted/js/');
|
|
|
|
});
|
|
|
|
|
2015-09-09 22:19:41 -04:00
|
|
|
describe('Getting Started in TypeScript', function () {
|
2015-08-08 16:55:53 -04:00
|
|
|
sharedTests('gettingstarted/ts/');
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|