/
protractor.conf.js
60 lines (48 loc) · 1.64 KB
/
protractor.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// protractor.conf.base.js
'use strict';
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
// Spec patterns are relative to the location of the spec file. They may
// include glob patterns.
specs: ['e2e/*.js'],
// onPrepare: function() {
// // Disable animations so e2e tests run more quickly
// var disableNgAnimate = function() {
// angular.module('disableNgAnimate', []).run(function($animate) {
// $animate.enabled(false);
// });
// };
//
// browser.addMockModule('disableNgAnimate', disableNgAnimate);
//
// require('jasmine-reporters');
// jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('xmloutput', true, true));
// },
rootElement: '.crowDevelop',
onPrepare: function() {
global.isAngularSite = function(flag) {
console.log('Switching to ' + (flag ? 'Asynchronous' : 'Synchronous') + ' mode.')
browser.ignoreSynchronization = !flag;
},
global.BROWSER_WAIT = 5000;
},
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
isVerbose: true,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 30000
},
baseUrl: 'https://localhost:5000',
framework: 'jasmine'
};
// protractor.conf.phantom.js
'use strict';
var config = exports.config = require('./protractor.conf.js').config;
config.capabilities = {
browserName: 'chrome',
version: '',
platform: 'ANY'
};
// Run by "protractor protractor.conf.phantom.js"