-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
var env = require('./environment'); | ||
|
||
// This is the configuration for a smoke test for an Angular2 application. | ||
// | ||
// *** NOTE *** | ||
// As Angular2 is in rapid development, the test application that ships with | ||
// the Protractor repository does not yet contain an Angular2 section. This | ||
// configuration assumes that you are serving the examples from the | ||
// angular/angular repository at localhost:8000. | ||
// See https://github.com/angular/angular/blob/master/DEVELOPER.md for | ||
// setup instructions. | ||
// | ||
exports.config = { | ||
seleniumAddress: env.seleniumAddress, | ||
|
||
framework: 'jasmine', | ||
|
||
specs: [ | ||
'ng2/timeout_spec.js' | ||
], | ||
|
||
capabilities: env.capabilities, | ||
|
||
baseUrl: env.baseUrl, | ||
|
||
// Special option for Angular2, to test against all Angular2 applications | ||
// on the page. This means that Protractor will wait for every app to be | ||
// stable before each action, and search within all apps when finding | ||
// elements. | ||
useAllAngular2AppRoots: true | ||
|
||
// Alternatively, you could specify one root element application, to test | ||
// against only that one: | ||
// rootElement: 'async-app' | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe('async angular2 application timeout', function() { | ||
var URL = '/ng2/#/async'; | ||
|
||
it('should timeout if intervals are used in the NgZone', function() { | ||
browser.get(URL); | ||
var timeout = $('#periodicIncrement'); | ||
timeout.$('.action').click(); | ||
timeout.$('.cancel').click(); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.