diff options
Diffstat (limited to 'client/e2e/protractor.conf.js')
-rw-r--r-- | client/e2e/protractor.conf.js | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/client/e2e/protractor.conf.js b/client/e2e/protractor.conf.js index 82daa435e..7b5f8de43 100644 --- a/client/e2e/protractor.conf.js +++ b/client/e2e/protractor.conf.js | |||
@@ -10,14 +10,42 @@ exports.config = { | |||
10 | ], | 10 | ], |
11 | 11 | ||
12 | seleniumAddress: 'http://hub-cloud.browserstack.com/wd/hub', | 12 | seleniumAddress: 'http://hub-cloud.browserstack.com/wd/hub', |
13 | capabilities: { | 13 | commonCapabilities: { |
14 | 'browserstack.user': process.env.BROWSERSTACK_USER, | 14 | 'browserstack.user': process.env.BROWSERSTACK_USER, |
15 | 'browserstack.key': process.env.BROWSERSTACK_KEY, | 15 | 'browserstack.key': process.env.BROWSERSTACK_KEY, |
16 | 'browserName': 'chrome', | ||
17 | 'browserstack.local': true, | 16 | 'browserstack.local': true, |
18 | 'project': 'PeerTube' | 17 | 'project': 'PeerTube' |
19 | }, | 18 | }, |
20 | 19 | ||
20 | multiCapabilities: [ | ||
21 | { | ||
22 | browserName: 'Chrome', | ||
23 | version: '66' | ||
24 | }, | ||
25 | { | ||
26 | browserName: 'Chrome', | ||
27 | version: '66', | ||
28 | os: 'android', | ||
29 | |||
30 | }, | ||
31 | { | ||
32 | browserName: 'Safari', | ||
33 | version: '11.1' | ||
34 | }, | ||
35 | { | ||
36 | browserName: 'Firefox', | ||
37 | version: '52' // ESR | ||
38 | }, | ||
39 | { | ||
40 | browserName: 'Firefox', | ||
41 | version: '60' | ||
42 | }, | ||
43 | { | ||
44 | browserName: 'Edge', | ||
45 | version: '17' | ||
46 | } | ||
47 | ], | ||
48 | |||
21 | maxSessions: 1, | 49 | maxSessions: 1, |
22 | baseUrl: 'http://localhost:4200/', | 50 | baseUrl: 'http://localhost:4200/', |
23 | framework: 'jasmine', | 51 | framework: 'jasmine', |
@@ -34,3 +62,7 @@ exports.config = { | |||
34 | jasmine.getEnv().addReporter(new SpecReporter({spec: {displayStacktrace: true}})) | 62 | jasmine.getEnv().addReporter(new SpecReporter({spec: {displayStacktrace: true}})) |
35 | } | 63 | } |
36 | } | 64 | } |
65 | |||
66 | exports.config.multiCapabilities.forEach(function (caps) { | ||
67 | for (var i in exports.config.commonCapabilities) caps[i] = caps[i] || exports.config.commonCapabilities[i] | ||
68 | }) | ||