/*
Basic configuration to run your cucumber
feature files and step definitions with protractor.
**/
exports.config = {

  seleniumAddress: 'http://localhost:4444/wd/hub',

  baseUrl: 'https://angularjs.org/',

  capabilities: {
      browserName:'chrome'
  },

 // set to "custom" instead of cucumber.
  framework: 'custom', 

// path relative to the current config file
  frameworkPath: require.resolve('protractor-cucumber-framework'),  

// Specs here are the cucumber feature files
  specs: [
    './cucumber/*.feature'     
  ],

  // cucumber command line options
  cucumberOpts: {
	// require step definition files before executing features
    require: ['./cucumber/*.js'],  
	// ‹string[]› (expression) only execute the features 
	// or scenarios with tags matching the expression
    tags: [],                      
	// ‹boolean› fail if there are any undefined or pending steps
    strict: true,                  
	// ‹string[]› (type[:path]) specify the output format, 
	// optionally supply PATH to redirect formatter output (repeatable)
    format: ["pretty"],            
	// ‹boolean› invoke formatters without executing steps
    'dry-run': false,              
	// ‹string[]› ("extension:module") require files 
	// with the given EXTENSION after requiring MODULE (repeatable)
    compiler: []                   
  },

 onPrepare: function () {
	// maximize the browser before executing the feature files
    browser.manage().window().maximize();
  }
};