pleroma-fe/test/e2e/nightwatch.conf.js

47 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2019-12-11 20:22:11 +11:00
require('@babel/register')
2016-10-27 01:46:32 +11:00
var config = require('../../config')
// http://nightwatchjs.org/guide#settings-file
module.exports = {
2019-07-05 17:02:14 +10:00
'src_folders': ['test/e2e/specs'],
'output_folder': 'test/e2e/reports',
'custom_assertions_path': ['test/e2e/custom-assertions'],
2016-10-27 01:46:32 +11:00
2019-07-05 17:02:14 +10:00
'selenium': {
'start_process': true,
'server_path': 'node_modules/selenium-server/lib/runner/selenium-server-standalone-2.53.1.jar',
'host': '127.0.0.1',
'port': 4444,
'cli_args': {
'webdriver.chrome.driver': require('chromedriver').path
2016-10-27 01:46:32 +11:00
}
},
2019-07-05 17:02:14 +10:00
'test_settings': {
'default': {
'selenium_port': 4444,
'selenium_host': 'localhost',
'silent': true,
'globals': {
'devServerURL': 'http://localhost:' + (process.env.PORT || config.dev.port)
2016-10-27 01:46:32 +11:00
}
},
2019-07-05 17:02:14 +10:00
'chrome': {
'desiredCapabilities': {
'browserName': 'chrome',
'javascriptEnabled': true,
'acceptSslCerts': true
2016-10-27 01:46:32 +11:00
}
},
2019-07-05 17:02:14 +10:00
'firefox': {
'desiredCapabilities': {
'browserName': 'firefox',
'javascriptEnabled': true,
'acceptSslCerts': true
2016-10-27 01:46:32 +11:00
}
}
}
}