const { SpecReporter } = require('jasmine-spec-reporter');

exports.config = {
  allScriptsTimeout: 300000,
  specs: [
    './e2e/**/*.e2e.ts'
  ],
  capabilities: {
    browserName: 'chrome',
    chromeOptions: {
      // args: ['--headless', '--disable-gpu', '--window-size=1024,768']
    }
  },
  directConnect: true,
  baseUrl: 'http://localhost:6500/',
  framework: 'jasmine',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 120000,
    print: function() {}
  },
  useAllAngular2AppRoots: true,
  beforeLaunch: function() {
    require('ts-node').register({
      project: 'e2e'
    });
  },
  onPrepare() {
    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
  }
};

@@ -216,11 +216,8 @@
     
- //
  arg

set protractor options back to headless