2022-09-04 10:26:10 +00:00
|
|
|
// eslint-disable-next-line node/no-extraneous-require
|
2018-10-02 20:15:02 +00:00
|
|
|
const ip = require('ip');
|
|
|
|
const common = require('./wdio.common.conf');
|
2018-10-04 00:39:39 +00:00
|
|
|
const dir =
|
|
|
|
common.config.capabilities[0]['moz:firefoxOptions'].prefs[
|
|
|
|
'browser.download.dir'
|
|
|
|
];
|
2018-10-02 20:15:02 +00:00
|
|
|
|
|
|
|
/*/
|
|
|
|
|
|
|
|
Config for running selenium in a new docker container against localhost
|
|
|
|
|
|
|
|
/*/
|
|
|
|
|
|
|
|
exports.config = Object.assign({}, common.config, {
|
|
|
|
baseUrl: `http://${ip.address()}:8000`,
|
|
|
|
maxInstances: 1,
|
|
|
|
services: ['docker', require('./testServer')],
|
|
|
|
dockerOptions: {
|
2018-11-20 14:50:59 +00:00
|
|
|
image: 'selenium/standalone-firefox-debug',
|
2018-10-02 20:15:02 +00:00
|
|
|
healthCheck: 'http://localhost:4444',
|
|
|
|
options: {
|
2018-11-20 14:50:59 +00:00
|
|
|
p: ['4444:4444', '5900:5900'],
|
2018-10-04 00:39:39 +00:00
|
|
|
mount: `type=bind,source=${dir},destination=${dir},consistency=delegated`,
|
2018-10-02 20:15:02 +00:00
|
|
|
shmSize: '2g'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|