2016-08-30 12:29:39 -04:00
|
|
|
// Make sure that the command line is read as the first thing
|
|
|
|
// as this could exit node if the help script should be printed.
|
|
|
|
require('./dist/all/e2e_util/e2e_util').readCommandLine();
|
|
|
|
|
2016-05-02 01:54:19 -04:00
|
|
|
var BROWSER_OPTIONS = {
|
|
|
|
LocalChrome: {
|
|
|
|
'browserName': 'chrome'
|
|
|
|
},
|
|
|
|
ChromeOnTravis: {
|
|
|
|
browserName: 'chrome',
|
|
|
|
chromeOptions: {
|
|
|
|
'args': ['--no-sandbox'],
|
|
|
|
'binary': process.env.CHROME_BIN
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.config = {
|
2016-08-30 17:17:37 -04:00
|
|
|
onPrepare: function() {
|
|
|
|
beforeEach(function() {
|
|
|
|
browser.ignoreSynchronization = false;
|
|
|
|
});
|
|
|
|
},
|
2016-05-02 01:54:19 -04:00
|
|
|
allScriptsTimeout: 11000,
|
|
|
|
specs: [
|
|
|
|
'dist/all/**/e2e_test/**/*_spec.js'
|
|
|
|
],
|
|
|
|
exclude: [
|
2016-09-07 19:04:33 -04:00
|
|
|
'dist/all/@angular/examples/**',
|
2016-05-02 01:54:19 -04:00
|
|
|
'**/key_events/**', // can't tell why this is failing
|
|
|
|
'**/sourcemap/**' // fails only on travis
|
|
|
|
],
|
|
|
|
capabilities: process.env.TRAVIS ? BROWSER_OPTIONS.ChromeOnTravis : BROWSER_OPTIONS.LocalChrome,
|
|
|
|
directConnect: true,
|
2016-05-24 15:33:14 -04:00
|
|
|
baseUrl: 'http://localhost:8000/',
|
2016-05-02 01:54:19 -04:00
|
|
|
framework: 'jasmine2',
|
|
|
|
jasmineNodeOpts: {
|
|
|
|
showColors: true,
|
|
|
|
defaultTimeoutInterval: 60000,
|
|
|
|
print: function(msg) { console.log(msg)}
|
|
|
|
},
|
|
|
|
useAllAngular2AppRoots: true
|
|
|
|
};
|
|
|
|
|
|
|
|
|