]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/e2e/local-protractor.conf.js
Fix E2E tests
[github/Chocobozzz/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 multiCapabilities: [
13 {
14 'browserName': 'firefox',
15 'name': 'Firefox',
16 'moz:firefoxOptions': {
17 binary: '/usr/bin/firefox-developer-edition',
18 // args: ["-headless"],
19 log: {
20 "level": "info" // default is "info"
21 }
22 }
23 },
24 {
25 'browserName': 'firefox',
26 'name': 'Firefox ESR',
27 'moz:firefoxOptions': {
28 binary: '/usr/bin/firefox-esr',
29 // args: ["-headless"],
30 log: {
31 "level": "info" // default is "info"
32 }
33 }
34 },
35 {
36 'browserName': 'chrome',
37 'name': 'Chromium'
38 }
39 ],
40
41 maxSessions: 1,
42 baseUrl: 'http://localhost:3000/',
43 framework: 'jasmine',
44 jasmineNodeOpts: {
45 showColors: true,
46 defaultTimeoutInterval: 45000,
47 print: function() {}
48 },
49
50 onPrepare() {
51 require('ts-node').register({
52 project: require('path').join(__dirname, './tsconfig.e2e.json')
53 })
54 jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }))
55 }
56 }