wdio.remote.conf.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. const base = require('./wdio.base.conf')
  2. function createCapability (capability) {
  3. return {
  4. 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
  5. build: process.env.TRAVIS_BUILD_NUMBER,
  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: '62.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: '70.0', platform: 'Windows 10' },
  21. { browserName: 'MicrosoftEdge', version: '14', platform: 'Windows 10' },
  22. { browserName: 'MicrosoftEdge', version: '17', platform: 'Windows 10' },
  23. // { browserName: 'safari', version: '11.0', platform: 'macOS 10.12' },
  24. // { browserName: 'Safari', platformName: 'iOS', platformVersion: '12.2', deviceOrientation: 'portrait', deviceName: 'iPhone 8 Simulator' },
  25. { browserName: 'chrome', platformName: 'Android', platformVersion: '6.0', deviceOrientation: 'portrait', deviceName: 'Android Emulator' }
  26. ].map(createCapability),
  27. // Patterns to exclude.
  28. exclude: [
  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. sauceConnect: true,
  47. user: process.env.SAUCE_USERNAME,
  48. key: process.env.SAUCE_ACCESS_KEY
  49. }