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