forked from sinonjs/sinon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmochify.webdriver.cjs
More file actions
30 lines (28 loc) · 935 Bytes
/
mochify.webdriver.cjs
File metadata and controls
30 lines (28 loc) · 935 Bytes
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
"use strict";
const assert = require("node:assert");
assert(process.env.BROWSER_NAME);
assert(process.env.SAUCE_USERNAME);
assert(process.env.SAUCE_ACCESS_KEY);
module.exports = {
driver: "webdriver",
// eslint-disable-next-line camelcase
driver_options: {
// Tests must run on a http website for Microsoft Edge to have
// sessionStorage.
url: "http://maxantoni.de/doctype.html",
hostname: "ondemand.saucelabs.com",
path: "/wd/hub",
port: 80,
capabilities: {
browserName: process.env.BROWSER_NAME,
browserVersion: "latest",
"sauce:options": {
build: `${process.env.BROWSER_NAME} ${
process.env.GITHUB_RUN_NUMBER || Date.now()
}`,
username: process.env.SAUCE_USERNAME,
accessKey: process.env.SAUCE_ACCESS_KEY,
},
},
},
};