wdio.remote.conf.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. const base = require('./wdio.base.conf')
  2. function createCapability (capability) {
  3. return {
  4. 'tunnel-identifier': process.env.SAUCE_TUNNEL_IDENTIFIER,
  5. build: process.env.SAUCE_BUILD,
  6. extendedDebugging: true,
  7. ...capability
  8. }
  9. }
  10. exports.config = {
  11. ...base.config,
  12. logLevel: 'warn',
  13. capabilities: [
  14. // Previous ESR
  15. // { browserName: 'firefox', version: '52.0', platform: 'Windows 7' },
  16. // Current ESR
  17. { browserName: 'firefox', version: '80.0', platform: 'Windows 10' },
  18. { browserName: 'internet explorer', version: '10.0', platform: 'Windows 8' },
  19. { browserName: 'internet explorer', version: '11.0', platform: 'Windows 10' },
  20. { browserName: 'chrome', version: '80.0', platform: 'Windows 10' },
  21. { browserName: 'MicrosoftEdge', version: '85', platform: 'Windows 10' },
  22. { browserName: 'safari', version: '11.1', platform: 'macOS 10.13' },
  23. // { browserName: 'Safari', platformName: 'iOS', platformVersion: '12.2', deviceOrientation: 'portrait', deviceName: 'iPhone 8 Simulator' },
  24. { browserName: 'chrome', platformName: 'Android', platformVersion: '6.0', deviceOrientation: 'portrait', deviceName: 'Android Emulator' }
  25. ].map(createCapability),
  26. // Patterns to exclude.
  27. exclude: [
  28. 'test/endtoend/chaos-monkey/*',
  29. 'test/endtoend/url-plugin/*',
  30. 'test/endtoend/transloadit/*'
  31. ],
  32. // If you only want to run your tests until a specific amount of tests have failed use
  33. // bail (default is 0 - don't bail, run all tests).
  34. bail: 3,
  35. // Set a base URL in order to shorten url command calls. If your url parameter starts
  36. // with "/", then the base url gets prepended.
  37. baseUrl: 'http://localhost',
  38. // Test runner services
  39. // Services take over a specific job you don't want to take care of. They enhance
  40. // your test setup with almost no effort. Unlike plugins, they don't add new
  41. // commands. Instead, they hook themselves up into the test process.
  42. services: [
  43. ...base.config.services,
  44. 'sauce'
  45. ],
  46. user: process.env.SAUCE_USERNAME,
  47. key: process.env.SAUCE_ACCESS_KEY
  48. }