'use strict';
/* globals jasmine */

/**
 *  Refers to http://blog.yodersolutions.com/run-protractor-tests-in-parallel/ to configure this  file
 */



exports.config = {
	seleniumAddress: 'http://hub:4444/wd/hub',
	// seleniumAddress: 'http://172.17.42.1:4444/wd/hub',
	specs: [
		'./spec/product-catalog/concurrent-editing.js'
	],
	framework: 'jasmine2',
	capabilities: {
		browserName: 'chrome',
		count: 1,
		'chromeOptions': {
			// Get rid of --ignore-certificate yellow warning
			args: ['--no-sandbox', '--test-type=browser']
		}
	},
	// in case it throws  Error: Timed out waiting for Protractor to synchronize with the page after 11 seconds. 
	// allScriptsTimeout: 300 * 1000,
	// getPageTimeout: 300 * 1000,
	// jasmineNodeOpts: {
	// 	defaultTimeoutInterval: 300 * 1000
	// },
	allScriptsTimeout: 200 * 1000,
	getPageTimeout: 200 * 1000,
	jasmineNodeOpts: {
		defaultTimeoutInterval: 200 * 1000
	},
	onPrepare: function() {
		var SpecReporter = require('jasmine-spec-reporter');
		// add jasmine spec reporter
		return jasmine.getEnv().addReporter(new SpecReporter({
			displayStacktrace: true
		}));

	}

};