wdio.docker.conf.js 754 B

12345678910111213141516171819202122232425262728
  1. // eslint-disable-next-line node/no-extraneous-require
  2. const ip = require('ip');
  3. const common = require('./wdio.common.conf');
  4. const dir =
  5. common.config.capabilities[0]['moz:firefoxOptions'].prefs[
  6. 'browser.download.dir'
  7. ];
  8. /*/
  9. Config for running selenium in a new docker container against localhost
  10. /*/
  11. exports.config = Object.assign({}, common.config, {
  12. baseUrl: `http://${ip.address()}:8000`,
  13. maxInstances: 1,
  14. services: ['docker', require('./testServer')],
  15. dockerOptions: {
  16. image: 'selenium/standalone-firefox-debug',
  17. healthCheck: 'http://localhost:4444',
  18. options: {
  19. p: ['4444:4444', '5900:5900'],
  20. mount: `type=bind,source=${dir},destination=${dir},consistency=delegated`,
  21. shmSize: '2g'
  22. }
  23. }
  24. });