1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- const base = require('./wdio.base.conf')
- function createCapability (capability) {
- return {
- 'tunnel-identifier': process.env.SAUCE_TUNNEL_IDENTIFIER,
- build: process.env.SAUCE_BUILD,
- extendedDebugging: true,
- ...capability,
- }
- }
- exports.config = {
- ...base.config,
- logLevel: 'warn',
- capabilities: [
- { browserName: 'firefox', version: 'latest', platform: 'Windows 10' },
- { browserName: 'firefox', version: 'latest-1', platform: 'Windows 10' },
- { browserName: 'chrome', version: 'latest', platform: 'Windows 10' },
- { browserName: 'chrome', version: 'latest-1', platform: 'Windows 10' },
- // { browserName: 'safari', version: 'latest', platform: 'macOS 11' },
- // { browserName: 'safari', version: '13.1', platform: 'macOS 10.15' },
- // { browserName: 'Safari', platformName: 'iOS', platformVersion: '12.2', deviceOrientation: 'portrait', deviceName: 'iPhone 8 Simulator' },
- { browserName: 'chrome', platformName: 'Android', platformVersion: '6.0', deviceOrientation: 'portrait', deviceName: 'Android Emulator' },
- ].map(createCapability),
- // Patterns to exclude.
- exclude: [
- 'test/endtoend/chaos-monkey/*',
- 'test/endtoend/url-plugin/*',
- 'test/endtoend/transloadit/*',
- ],
- // If you only want to run your tests until a specific amount of tests have failed use
- // bail (default is 0 - don't bail, run all tests).
- bail: 3,
- // Set a base URL in order to shorten url command calls. If your url parameter starts
- // with "/", then the base url gets prepended.
- baseUrl: 'http://localhost',
- // Test runner services
- // Services take over a specific job you don't want to take care of. They enhance
- // your test setup with almost no effort. Unlike plugins, they don't add new
- // commands. Instead, they hook themselves up into the test process.
- services: [
- ...base.config.services,
- 'sauce',
- ],
- user: process.env.SAUCE_USERNAME,
- key: process.env.SAUCE_ACCESS_KEY,
- }
|