1d4216a8bc
This commit also adds a new capability to the protractor configs that ensures that all angularjs.org tests run correctly on Firefox. See https://github.com/SeleniumHQ/selenium/issues/1202
38 lines
942 B
JavaScript
38 lines
942 B
JavaScript
'use strict';
|
|
|
|
exports.config = {
|
|
allScriptsTimeout: 11000,
|
|
|
|
baseUrl: 'http://localhost:8000/',
|
|
|
|
framework: 'jasmine2',
|
|
|
|
capabilities: {
|
|
// Fix element scrolling behavior in Firefox for fixed header elements (like angularjs.org has)
|
|
'elementScrollBehavior': 1
|
|
},
|
|
|
|
onPrepare: function() {
|
|
/* global angular: false, browser: false, jasmine: false */
|
|
|
|
// Disable animations so e2e tests run more quickly
|
|
var disableNgAnimate = function() {
|
|
angular.module('disableNgAnimate', []).run(['$animate', function($animate) {
|
|
$animate.enabled(false);
|
|
}]);
|
|
};
|
|
|
|
browser.addMockModule('disableNgAnimate', disableNgAnimate);
|
|
|
|
// Store the name of the browser that's currently being used.
|
|
browser.getCapabilities().then(function(caps) {
|
|
browser.params.browser = caps.get('browserName');
|
|
});
|
|
},
|
|
|
|
jasmineNodeOpts: {
|
|
defaultTimeoutInterval: 60000,
|
|
showTiming: true
|
|
}
|
|
};
|