|
36831ec
mzgol authored
|
||
| 1 | 'use strict'; | |
| 2 | ||
|
0e85ca9
juliemr authored
|
||
| 3 | exports.config = { | |
| 4 | allScriptsTimeout: 11000, | |
| 5 | ||
| 6 | specs: [ | |
| 7 | 'build/docs/ptore2e/**/*.js', | |
|
63761fd
petebacondarwin authored
|
||
| 8 | 'docs/app/e2e/*.scenario.js' | |
|
0e85ca9
juliemr authored
|
||
| 9 | ], | |
| 10 | ||
| 11 | capabilities: { | |
| 12 | 'browserName': 'chrome' | |
| 13 | }, | |
| 14 | ||
| 15 | baseUrl: 'http://localhost:8000/build/docs/', | |
| 16 | ||
| 17 | framework: 'jasmine', | |
| 18 | ||
| 19 | onPrepare: function() { | |
|
36831ec
mzgol authored
|
||
| 20 | /* global angular: false, browser: false, jasmine: false */ | |
| 21 | ||
|
0e85ca9
juliemr authored
|
||
| 22 | // Disable animations so e2e tests run more quickly | |
| 23 | var disableNgAnimate = function() { | |
| 24 | angular.module('disableNgAnimate', []).run(function($animate) { | |
| 25 | $animate.enabled(false); | |
| 26 | }); | |
| 27 | }; | |
| 28 | ||
| 29 | browser.addMockModule('disableNgAnimate', disableNgAnimate); | |
| 30 | ||
| 31 | require('jasmine-reporters'); | |
| 32 | jasmine.getEnv().addReporter( | |
|
f4a121f
petebacondarwin authored
|
||
| 33 | new jasmine.JUnitXmlReporter('test_out/e2e-' + exports.config.capabilities.browserName + '-', true, true)); | |
|
0e85ca9
juliemr authored
|
||
| 34 | }, | |
| 35 | ||
| 36 | jasmineNodeOpts: { | |
| 37 | defaultTimeoutInterval: 30000, | |
| 38 | showColors: false | |
| 39 | } | |
| 40 | }; |