1 | const { config } = require('./wdio.default.conf');
|
2 |
|
3 | const buildName = `snowplow-js-tracker-${process.env.GITHUB_WORKFLOW}/${process.env.GITHUB_RUN_NUMBER}-${process.env.GITHUB_REF}-${process.env.GITHUB_SHA}`;
|
4 |
|
5 | exports.config = {
|
6 | ...config,
|
7 |
|
8 | user: process.env.SAUCE_USERNAME,
|
9 | key: process.env.SAUCE_ACCESS_KEY,
|
10 |
|
11 | maxInstances: 5,
|
12 | capabilities: [
|
13 | {
|
14 | browserName: 'firefox',
|
15 | platformName: 'Windows 10',
|
16 | browserVersion: 'latest',
|
17 | 'sauce:options': {
|
18 | build: buildName,
|
19 | },
|
20 | },
|
21 | {
|
22 | browserName: 'firefox',
|
23 | platformName: 'macOS 10.15',
|
24 | browserVersion: 'latest',
|
25 | 'sauce:options': {
|
26 | build: buildName,
|
27 | },
|
28 | },
|
29 | {
|
30 | browserName: 'chrome',
|
31 | platformName: 'Windows 10',
|
32 | browserVersion: 'latest',
|
33 | 'sauce:options': {
|
34 | build: buildName,
|
35 | },
|
36 | },
|
37 | {
|
38 | browserName: 'chrome',
|
39 | platformName: 'macOS 10.15',
|
40 | browserVersion: 'latest',
|
41 | 'sauce:options': {
|
42 | build: buildName,
|
43 | },
|
44 | },
|
45 | {
|
46 | browserName: 'MicrosoftEdge',
|
47 | platformName: 'Windows 10',
|
48 | browserVersion: 'latest',
|
49 | 'sauce:options': {
|
50 | build: buildName,
|
51 | },
|
52 | },
|
53 | {
|
54 | browserName: 'MicrosoftEdge',
|
55 | platformName: 'Windows 10',
|
56 | browserVersion: '13.10586',
|
57 | 'sauce:options': {
|
58 | build: buildName,
|
59 | },
|
60 | },
|
61 | {
|
62 | browserName: 'internet explorer',
|
63 | platformName: 'Windows 8.1',
|
64 | browserVersion: '11',
|
65 | 'sauce:options': {
|
66 | build: buildName,
|
67 | },
|
68 | },
|
69 | {
|
70 | browserName: 'internet explorer',
|
71 | platformName: 'Windows 8',
|
72 | browserVersion: '10',
|
73 | 'sauce:options': {
|
74 | build: buildName,
|
75 | },
|
76 | },
|
77 | {
|
78 | browserName: 'safari',
|
79 | browserVersion: '14',
|
80 | platformName: 'macOS 11.00',
|
81 | 'sauce:options': {
|
82 | seleniumVersion: '3.14.0',
|
83 | build: buildName,
|
84 | },
|
85 | },
|
86 | {
|
87 | browserName: 'safari',
|
88 | browserVersion: '13.1',
|
89 | platformName: 'macOS 10.15',
|
90 | 'sauce:options': {
|
91 | seleniumVersion: '3.14.0',
|
92 | build: buildName,
|
93 | },
|
94 | },
|
95 | {
|
96 | browserName: 'safari',
|
97 | browserVersion: '12.1',
|
98 | platformName: 'macOS 10.13',
|
99 | 'sauce:options': {
|
100 | seleniumVersion: '3.14.0',
|
101 | build: buildName,
|
102 | },
|
103 | },
|
104 |
|
105 | {
|
106 | browserName: 'safari',
|
107 | platform: 'OS X 10.10',
|
108 | version: '8.0',
|
109 | build: buildName,
|
110 | },
|
111 | {
|
112 | browserName: 'internet explorer',
|
113 | platform: 'Windows 7',
|
114 | version: '9',
|
115 | build: buildName,
|
116 | },
|
117 | {
|
118 | browserName: 'firefox',
|
119 | platform: 'Windows 10',
|
120 | version: '53.0',
|
121 | build: buildName,
|
122 | },
|
123 | {
|
124 | browserName: 'chrome',
|
125 | platform: 'Windows 10',
|
126 | version: '60.0',
|
127 | build: buildName,
|
128 | },
|
129 | ],
|
130 | services: [
|
131 | [
|
132 | 'sauce',
|
133 | {
|
134 | sauceConnect: true,
|
135 | sauceConnectOpts: {},
|
136 | },
|
137 | ],
|
138 | [
|
139 | 'static-server',
|
140 | {
|
141 | folders: [{ mount: '/', path: './test/pages' }],
|
142 | port: 8080,
|
143 | },
|
144 | ],
|
145 | ],
|
146 | };
|