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

exports.config = {
  allScriptsTimeout: 11000,
  specs: [
    '../e2e/**/*.e2e-spec.ts'
  ],
  seleniumAddress: 'http://hub-cloud.browserstack.com/wd/hub',
  commonCapabilities: {
    build: process.env.BS_AUTOMATE_BUILD,
    project: process.env.BS_AUTOMATE_PROJECT,
    'browserstack.user': process.env.BROWSERSTACK_USERNAME,
    'browserstack.key': process.env.BROWSERSTACK_KEY,
    'browserstack.local': true,
    'browserstack.localIdentifier': process.env.BROWSERSTACK_LOCAL_IDENTIFIER
  },
  multiCapabilities: [{
    'browserName': 'Chrome',
    'os': 'Windows'
  }],
  directConnect: false,
  baseUrl: 'http://localhost:4200/',
  framework: 'jasmine',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 30000,
    print: function() {}
  },
  beforeLaunch: function() {
    require('ts-node').register({
      project: 'e2e/tsconfig.e2e.json'
    });
  },
  onPrepare() {
    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
  }
};

@@ -216,14 +216,8 @@
 %0A  c
-ommonC
 apab
@@ -223,24 +223,149 @@
 bilities: %7B%0A
+    browserName: 'Chrome',%0A    browser_version: '57.0',%0A    os: 'Windows',%0A    os_version: '7',%0A    resolution: '1920x1080',%0A
     build: p
@@ -673,87 +673,8 @@
  %7D,%0A
-  multiCapabilities: %5B%7B%0A    'browserName': 'Chrome',%0A    'os': 'Windows'%0A  %7D%5D,%0A
   di

rollback to old approach since authorization doesn't work with commonCapabilities