ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

48 lines
1.2 KiB

  1. import { afterLocalSuite, beforeLocalSession, beforeLocalSuite } from './src/utils'
  2. import { config as mainConfig } from './wdio.main.conf'
  3. const prefs = { 'intl.accept_languages': 'en' }
  4. process.env.LANG = 'en'
  5. // https://github.com/mozilla/geckodriver/issues/1354#issuecomment-479456411
  6. process.env.MOZ_HEADLESS_WIDTH = '1280'
  7. process.env.MOZ_HEADLESS_HEIGHT = '1024'
  8. const windowSizeArg = `--window-size=${process.env.MOZ_HEADLESS_WIDTH},${process.env.MOZ_HEADLESS_HEIGHT}`
  9. module.exports = {
  10. config: {
  11. ...mainConfig,
  12. runner: 'local',
  13. maxInstancesPerCapability: 1,
  14. capabilities: [
  15. {
  16. 'browserName': 'chrome',
  17. 'goog:chromeOptions': {
  18. binary: '/usr/bin/google-chrome-stable',
  19. args: [ '--headless', '--disable-gpu', windowSizeArg ],
  20. prefs
  21. }
  22. },
  23. {
  24. 'browserName': 'firefox',
  25. 'moz:firefoxOptions': {
  26. binary: '/usr/bin/firefox-developer-edition',
  27. args: [ '--headless', windowSizeArg ],
  28. prefs
  29. }
  30. }
  31. ],
  32. services: [ 'shared-store' ],
  33. beforeSession: beforeLocalSession,
  34. beforeSuite: beforeLocalSuite,
  35. afterSuite: afterLocalSuite
  36. } as WebdriverIO.Config
  37. }