2015-10-16 00:51:13 -04:00
|
|
|
/*global browser, element, by */
|
|
|
|
describe('QuickStart E2E Tests', function () {
|
|
|
|
|
|
|
|
// #docregion shared
|
|
|
|
var expectedMsg = 'My First Angular 2 App';
|
|
|
|
|
|
|
|
// tests shared across languages
|
|
|
|
function sharedTests(basePath) {
|
|
|
|
beforeEach(function () {
|
|
|
|
browser.get(basePath + 'index.html');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should display: ' + expectedMsg, function () {
|
|
|
|
expect(element(by.css('h1')).getText()).toEqual(expectedMsg);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// #enddocregion
|
|
|
|
|
|
|
|
describe('QuickStart in JavaScript', function () {
|
|
|
|
sharedTests('quickstart/js/');
|
2015-08-03 20:45:58 -04:00
|
|
|
});
|
2015-08-08 16:55:53 -04:00
|
|
|
|
2015-10-16 00:51:13 -04:00
|
|
|
describe('QuickStart in TypeScript', function () {
|
|
|
|
sharedTests('quickstart/ts/');
|
2015-08-03 20:45:58 -04:00
|
|
|
});
|
|
|
|
|
2015-10-16 00:51:13 -04:00
|
|
|
});
|