This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
angular.js/protractor-shared-conf.js /
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (28 sloc)
942 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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 | |
| } | |
| }; |