browsers.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. const desktop = {
  2. 'mac-chrome-latest': ['macOS 10.15', 'chrome', '80.0'],
  3. 'mac-firefox-latest': ['macOS 10.15', 'firefox', '74.0'],
  4. 'mac-safari-latest': ['macOS 10.15', 'safari', '13.1'],
  5. 'mac-chrome-previous': ['macOS 10.14', 'chrome', '79.0'],
  6. 'mac-firefox-previous': ['macOS 10.14', 'firefox', '73.0'],
  7. 'mac-safari-previous': ['macOS 10.14', 'safari', '12.0'],
  8. 'windows-chrome-latest': ['Windows 10', 'chrome', '80.0'],
  9. 'windows-firefox-latest': ['Windows 10', 'firefox', '74.0'],
  10. 'windows-edge-latest': ['Windows 10', 'microsoftedge', '80.0'],
  11. 'windows-chrome-previous': ['Windows 8.1', 'chrome', '79.0'],
  12. 'windows-firefox-previous': ['Windows 8.1', 'firefox', '74.0'],
  13. 'windows-edge-previous': ['Windows 10', 'microsoftedge', '79.0'],
  14. };
  15. const mobile = {
  16. 'ios-latest': ['iPhone 11 Simulator', 'iOS', '13.2', 'Safari'],
  17. 'ios-previous': ['iPhone X Simulator', 'iOS', '12.4', 'Safari'],
  18. 'android-latest': ['Android GoogleAPI Emulator', 'Android', '10.0', 'Chrome'],
  19. 'android-previous': [
  20. 'Android GoogleAPI Emulator',
  21. 'Android',
  22. '9.0',
  23. 'Chrome',
  24. ],
  25. };
  26. Object.keys(desktop).forEach(key => {
  27. module.exports[key] = {
  28. base: 'SauceLabs',
  29. browserName: desktop[key][1],
  30. version: desktop[key][2],
  31. platform: desktop[key][0],
  32. };
  33. });
  34. Object.keys(mobile).forEach(key => {
  35. module.exports[key] = {
  36. base: 'SauceLabs',
  37. browserName: mobile[key][3],
  38. appiumVersion: '1.16.0',
  39. deviceName: mobile[key][0],
  40. deviceOrientation: 'portrait',
  41. platformVersion: mobile[key][2],
  42. platformName: mobile[key][1],
  43. };
  44. });