-
Notifications
You must be signed in to change notification settings - Fork 10
/
saucelabs.config.js
41 lines (37 loc) · 1.57 KB
/
saucelabs.config.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
const { config } = require('./e2e.config');
// =====================
// Sauce specific config
// =====================
// See https://webdriver.io/docs/sauce-service.html for more information
config.user = process.env.SAUCE_USERNAME;
config.key = process.env.SAUCE_ACCESS_KEY;
config.region = process.env.REGION || 'us';
// ===================================================================================
// Capabilities
// You can find more about constructing the capabilities for real device testing here
// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/
//
// All test configuration options and W3C compliant options can be found here
// https://wiki.saucelabs.com/display/DOCS/Test+Configuration+Options
//
// To read more about W3C and Sauce Labs please check
// https://wiki.saucelabs.com/display/DOCS/W3C+Capabilities+Support
// ===================================================================================
config.capabilities = [
{
// For the W3C capabilities, please check
// https://www.w3.org/TR/webdriver1/#capabilities
browserName: 'chrome',
platformName: 'Windows 10',
browserVersion: 'latest',
// All vendor specific, in this case Sauce specific capabilities, should be
// put in vendor prefixed options, see
// https://www.w3.org/TR/webdriver1/#dfn-extension-capability
'sauce:options': {
build: `Sauce Labs build-${new Date().getTime()}`,
screenResolution: '1440x900'
},
},
];
config.services = config.services.concat('sauce');
exports.config = config;