forked from open-wc/open-wc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bs-settings.js
76 lines (71 loc) · 1.79 KB
/
bs-settings.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
if (!process.env.BROWSER_STACK_USERNAME || !process.env.BROWSER_STACK_ACCESS_KEY) {
throw new Error(`
!!You have to set your Browserstack automate username and key!!
Login and go to https://www.browserstack.com/accounts/settings
then run in your console (or add it to your ~/.bashrc)
export BROWSER_STACK_USERNAME=[username];
export BROWSER_STACK_ACCESS_KEY=[key];
`);
}
/**
* Extends the es5 karma config with a browserstack luncher
*
* By default runs tests in the latest stable versions of
* - Chrome
* - Firefox
* - Safari
* - Edge
* and IE11.
*
* See demo/karma.es5.config.js for an example implementation.
*/
module.exports = () => ({
browserStack: {
username: process.env.BROWSER_STACK_USERNAME,
accessKey: process.env.BROWSER_STACK_ACCESS_KEY,
project: 'open-wc',
},
browsers: [
'bs_win10_chrome_latest',
'bs_win10_firefox_latest',
'bs_win10_edge_latest',
'bs_osxmojave_safari_latest',
'bs_win10_ie_11',
],
// define browsers
// https://www.browserstack.com/automate/capabilities
customLaunchers: {
bs_win10_chrome_latest: {
base: 'BrowserStack',
browser: 'Chrome',
os: 'Windows',
os_version: '10',
},
bs_win10_firefox_latest: {
base: 'BrowserStack',
browser: 'Firefox',
browser_version: '64.0',
os: 'Windows',
os_version: '10',
},
bs_win10_edge_latest: {
base: 'BrowserStack',
browser: 'Edge',
os: 'Windows',
os_version: '10',
},
bs_osxmojave_safari_latest: {
base: 'BrowserStack',
browser: 'Safari',
os: 'OS X',
os_version: 'Mojave',
},
bs_win10_ie_11: {
base: 'BrowserStack',
browser: 'IE',
browser_version: '11.0',
os: 'Windows',
os_version: '10',
},
},
});