-
Notifications
You must be signed in to change notification settings - Fork 7
/
karma.conf.saucelabs.js
150 lines (146 loc) · 3.79 KB
/
karma.conf.saucelabs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
const webpack = require('webpack');
const commonConfig = require('./karma.conf');
// const customLaunchers = {
// sl_chrome: {
// base: 'SauceLabs',
// browserName: 'chrome',
// platform: 'Windows 7',
// version: '58'
// },
// sl_firefox: {
// base: 'SauceLabs',
// browserName: 'firefox',
// platform: 'Windows 7',
// version: '53'
// },
// sl_opera: {
// base: 'SauceLabs',
// browserName: 'opera',
// platform: 'Windows 7',
// version: '12'
// },
// sl_safari: {
// base: 'SauceLabs',
// browserName: 'safari',
// platform: 'macOS 10.12',
// version: '10'
// },
// sl_ios_safari: {
// base: 'SauceLabs',
// browserName: 'iphone',
// platform: 'OS X 10.9',
// version: '7.1'
// },
// sl_android: {
// base: 'SauceLabs',
// browserName: 'Browser',
// deviceName: 'Samsung Galaxy S3 Emulator',
// deviceOrientation: 'portrait',
// platform: 'Android',
// version: '4.4',
// }
// };
// [8, 9, 10, 11, 13, 14].forEach(v => {
// customLaunchers[`sl_ie${v}`] = {
// base: 'SauceLabs',
// browserName: v === 13 || v === 14 ? 'MicrosoftEdge' : 'internet explorer',
// platform: `Windows ${v === 13 || v === 14 ? '10' : '7'}`,
// version: v
// };
// });
const customLaunchers ={
sl_win_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 10'
},
sl_mac_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'macOS 10.12'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 10'
},
sl_mac_firfox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'macOS 10.12'
},
// for https://stackoverflow.com/questions/46913856/value-is-not-a-sequence-safari-exception
// sl_safari: {
// base: 'SauceLabs',
// browserName: 'safari',
// platform: 'macOS 10.12'
// },
sl_edge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11.285',
platform: 'Windows 10'
},
sl_ie_10: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '10.0',
platform: 'Windows 7'
},
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '9.0',
platform: 'Windows 7'
},
// sl_ie_8: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// version: '8.0',
// platform: 'Windows 7'
// },
sl_ios_safari_9: {
base: 'SauceLabs',
browserName: 'iphone',
version: '10.3'
},
'SL_ANDROID4.4': {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '4.4'
},
SL_ANDROID5: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '5.1'
},
SL_ANDROID6: {
base: 'SauceLabs',
browserName: 'Chrome',
platform: 'Android',
version: '6.0',
device: 'Android Emulator'
}
};
// remove animate test for saucelabs
commonConfig.files.pop();
module.exports = function(config) {
commonConfig(config);
config.set({
browsers: Object.keys(customLaunchers),
customLaunchers: customLaunchers,
reporters: ['dots', 'saucelabs'],
sauceLabs: {
testName: 'Intact Unit Tests',
recordScreenshots: false,
},
captureTimeout: 120000,
});
};