forked from socketio/socket.io-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.js
94 lines (87 loc) · 2.08 KB
/
wdio.conf.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
const BASE_SAUCE_OPTIONS = {
build: process.env.GITHUB_RUN_ID || "local",
name: "socket.io-parser",
};
const config = {
specs: ["./test/index.js"],
capabilities: [
{
browserName: "chrome",
},
],
maxInstances: 5,
logLevel: "warn",
bail: 0,
baseUrl: "http://localhost",
reporters: ["spec"],
framework: "mocha",
mochaOpts: {
ui: "bdd",
timeout: 60000,
},
};
if (process.env.CI === "true") {
config.services = ["sauce"];
config.user = process.env.SAUCE_USERNAME;
config.key = process.env.SAUCE_ACCESS_KEY;
// https://saucelabs.com/platform/platform-configurator#/
config.capabilities = [
{
browserName: "chrome",
browserVersion: "latest",
platformName: "Windows 11",
"sauce:options": BASE_SAUCE_OPTIONS,
},
{
browserName: "MicrosoftEdge",
browserVersion: "latest",
platformName: "Windows 11",
"sauce:options": BASE_SAUCE_OPTIONS,
},
{
browserName: "firefox",
browserVersion: "latest",
platformName: "Windows 11",
"sauce:options": BASE_SAUCE_OPTIONS,
},
{
browserName: "internet explorer",
browserVersion: "10",
platformName: "Windows 7",
"sauce:options": BASE_SAUCE_OPTIONS,
},
{
browserName: "safari",
browserVersion: "latest",
platformName: "macOS 12",
"sauce:options": BASE_SAUCE_OPTIONS,
},
{
platformName: "Android",
browserName: "Chrome",
"appium:deviceName": "Android GoogleAPI Emulator",
"appium:platformVersion": "latest",
"appium:automationName": "UiAutomator2",
"sauce:options": Object.assign(
{
appiumVersion: "1.22.1",
},
BASE_SAUCE_OPTIONS
),
},
{
platformName: "iOS",
browserName: "Safari",
"appium:deviceName": "iPhone Simulator",
"appium:platformVersion": "latest",
"appium:automationName": "XCUITest",
"sauce:options": Object.assign(
{
appiumVersion: "2.0.0",
},
BASE_SAUCE_OPTIONS
),
},
];
}
exports.config = config;