Refactor email enabled function
[oweals/peertube.git] / client / e2e / local-protractor.conf.js
1 // Protractor configuration file, see link for more information
2 // https://github.com/angular/protractor/blob/master/lib/config.ts
3
4 const {SpecReporter} = require('jasmine-spec-reporter')
5
6 exports.config = {
7   allScriptsTimeout: 25000,
8   specs: ['./src/**/*.e2e-spec.ts'],
9
10   directConnect: true,
11
12   capabilities: {
13     'browserName': 'firefox',
14     'moz:firefoxOptions': {
15       binary: '/usr/bin/firefox-esr',
16       // args: ["-headless"],
17       log: {
18         "level": "info" // default is "info"
19       }
20     }
21   },
22
23   // maxSessions: 1,
24   baseUrl: 'http://localhost:3000/',
25   framework: 'jasmine',
26   jasmineNodeOpts: {
27     showColors: true,
28     defaultTimeoutInterval: 45000,
29     print: function() {}
30   },
31
32   onPrepare() {
33     require('ts-node').register({
34       project: require('path').join(__dirname, './tsconfig.e2e.json')
35     })
36     jasmine.getEnv().addReporter(new SpecReporter({   spec:  {  displayStacktrace: true    }  }))
37   }
38 }