'use strict';

/*eslint no-process-env: 0*/

var config = {
	specs: [
		'../src/**/*.spec.js'
	],
	directConnect: true,
	framework: 'jasmine',
	multiCapabilities: [{
		browserName: 'chrome'
	}],
	baseUrl: 'http://localhost:8000/demo',
	beforeLaunch: function() {
		var exec = require('child_process').exec;

		exec('gulp serve');
	}
};

if (process.env.TRAVIS) {
	config.allScriptsTimeout = 110000;
	config.jasmineNodeOpts = {
		defaultTimeoutInterval: 100000
	};
	config.multiCapabilities = [{
		browserName: 'firefox'
	}];
}

exports.config = config;

@@ -323,16 +323,113 @@
 erve');%0A
+%09%09return new Promise((resolve) =%3E %7B%0A%09%09%09setTimeout(resolve, process.env.TRAVIS ? 5000 : 0);%0A%09%09%7D);%0A
 %09%7D%0A%7D;%0A%0Ai

include a timeout before starting e2e tests