2014-06-23 23:17:31 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
2014-02-06 11:29:24 -08:00
|
|
|
exports.config = {
|
|
|
|
|
allScriptsTimeout: 11000,
|
|
|
|
|
|
2014-10-19 10:28:03 +01:00
|
|
|
baseUrl: 'http://localhost:8000/',
|
2014-02-06 11:29:24 -08:00
|
|
|
|
2016-07-07 15:29:25 +02:00
|
|
|
framework: 'jasmine2',
|
2014-02-06 11:29:24 -08:00
|
|
|
|
2016-07-21 00:27:36 +02:00
|
|
|
capabilities: {
|
|
|
|
|
// Fix element scrolling behavior in Firefox for fixed header elements (like angularjs.org has)
|
|
|
|
|
'elementScrollBehavior': 1
|
|
|
|
|
},
|
|
|
|
|
|
2014-02-06 11:29:24 -08:00
|
|
|
onPrepare: function() {
|
2014-06-23 23:17:31 +02:00
|
|
|
/* global angular: false, browser: false, jasmine: false */
|
|
|
|
|
|
2014-02-06 11:29:24 -08:00
|
|
|
// Disable animations so e2e tests run more quickly
|
|
|
|
|
var disableNgAnimate = function() {
|
2014-09-24 15:01:20 +01:00
|
|
|
angular.module('disableNgAnimate', []).run(['$animate', function($animate) {
|
2014-02-06 11:29:24 -08:00
|
|
|
$animate.enabled(false);
|
2014-09-24 15:01:20 +01:00
|
|
|
}]);
|
2014-02-06 11:29:24 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
browser.addMockModule('disableNgAnimate', disableNgAnimate);
|
2014-02-19 21:01:54 -08:00
|
|
|
|
|
|
|
|
// Store the name of the browser that's currently being used.
|
|
|
|
|
browser.getCapabilities().then(function(caps) {
|
|
|
|
|
browser.params.browser = caps.get('browserName');
|
|
|
|
|
});
|
2014-02-06 11:29:24 -08:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
jasmineNodeOpts: {
|
2014-07-02 14:09:10 -07:00
|
|
|
defaultTimeoutInterval: 60000,
|
|
|
|
|
showTiming: true
|
2014-02-06 11:29:24 -08:00
|
|
|
}
|
|
|
|
|
};
|