b66997d4e3
This reverts to using Chrome with direct connect for E2E tests, as build nodes should already have a configured virtual X server for npm jobs. This also removes the need for Selenium, which should speed up environment setup. PhantomJS appears to be somewhat unreliable for E2E testing, and does not allow for some extra features, such as reading from browser console logs. Change-Id: I77a4fa86469c96af5494dc8118217d47abbc6dea
43 lines
636 B
JavaScript
43 lines
636 B
JavaScript
'use strict';
|
|
|
|
var phantomjs = require('phantomjs');
|
|
|
|
var gulpConfig = require('../gulp/config');
|
|
|
|
exports.config = {
|
|
|
|
allScriptsTimeout: 11000,
|
|
|
|
baseUrl: 'http://localhost:' + gulpConfig.serverPort + '/',
|
|
|
|
directConnect: true,
|
|
|
|
capabilities: {
|
|
browserName: 'chrome'
|
|
},
|
|
|
|
framework: 'jasmine',
|
|
|
|
jasmineNodeOpts: {
|
|
isVerbose: false,
|
|
showColors: true,
|
|
includeStackTrace: true,
|
|
defaultTimeoutInterval: 30000
|
|
},
|
|
|
|
specs: [
|
|
'e2e/**/*.js'
|
|
],
|
|
|
|
mocks: {
|
|
dir: 'e2e/mocks'
|
|
},
|
|
|
|
onPrepare: function() {
|
|
require('protractor-http-mock').config = {
|
|
rootDirectory: __dirname
|
|
};
|
|
}
|
|
|
|
};
|