aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/protractor.conf.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e/protractor.conf.js')
-rw-r--r--client/e2e/protractor.conf.js96
1 files changed, 0 insertions, 96 deletions
diff --git a/client/e2e/protractor.conf.js b/client/e2e/protractor.conf.js
deleted file mode 100644
index ff0ae83e7..000000000
--- a/client/e2e/protractor.conf.js
+++ /dev/null
@@ -1,96 +0,0 @@
1// Protractor configuration file, see link for more information
2// https://github.com/angular/protractor/blob/master/lib/config.ts
3
4const {SpecReporter} = require('jasmine-spec-reporter')
5
6exports.config = {
7 allScriptsTimeout: 25000,
8 specs: [ './src/**/*.e2e-spec.ts' ],
9
10 seleniumAddress: 'http://hub-cloud.browserstack.com/wd/hub',
11 commonCapabilities: {
12 'browserstack.user': process.env.BROWSERSTACK_USER,
13 'browserstack.key': process.env.BROWSERSTACK_KEY,
14 'browserstack.local': true,
15 'browserstack.console': 'verbose',
16 'browserstack.networkLogs': true,
17 'browserstack.debug': true,
18 project: 'PeerTube',
19 build: 'Main',
20 name: 'Bstack-[Protractor] Parallel Test'
21 },
22
23 multiCapabilities: [
24 {
25 browserName: 'Safari',
26 version: '11.1',
27 name: 'Safari Desktop',
28 resolution: '1280x1024'
29 },
30 {
31 browserName: 'Chrome',
32 name: 'Latest Chrome Desktop',
33 resolution: '1280x1024'
34 },
35 {
36 browserName: 'Firefox',
37 version: '68', // ESR
38 name: 'Firefox ESR Desktop',
39 resolution: '1280x1024'
40 },
41 {
42 browserName: 'Firefox',
43 name: 'Latest Firefox Desktop',
44 resolution: '1280x1024'
45 },
46 {
47 browserName: 'Edge',
48 name: 'Latest Edge Desktop',
49 resolution: '1280x1024'
50 },
51 {
52 browserName: 'Chrome',
53 device: 'Google Nexus 6',
54 real_mobile: 'true',
55 os_version: '5.0',
56 name: 'Latest Chrome Android'
57 },
58 {
59 browserName: 'Safari',
60 device: 'iPhone 8 Plus',
61 real_mobile: 'true',
62 os_version: '11',
63 name: 'Safari iPhone'
64 },
65 {
66 browserName: 'Safari',
67 device: 'iPad 7th',
68 real_mobile: 'true',
69 os_version: '13',
70 name: 'Safari iPad'
71 }
72 ],
73
74 // maxSessions: 1,
75 // BrowserStack compatible ports: https://www.browserstack.com/question/664
76 baseUrl: 'http://localhost:3333/',
77 framework: 'jasmine',
78 jasmineNodeOpts: {
79 showColors: true,
80 defaultTimeoutInterval: 45000,
81 print: function() {}
82 },
83
84 onPrepare() {
85 require('ts-node').register({
86 project: require('path').join(__dirname, './tsconfig.json')
87 })
88 jasmine.getEnv().addReporter(new SpecReporter({
89 spec: { displayStacktrace: 'raw' }
90 }))
91 }
92}
93
94exports.config.multiCapabilities.forEach(function (caps) {
95 for (var i in exports.config.commonCapabilities) caps[i] = caps[i] || exports.config.commonCapabilities[i]
96})