mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 13:44:22 +08:00
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
const nightwatch_config = {
|
|
src_folders: './test/e2e/specs/',
|
|
output_folder: './test/e2e/tests_output',
|
|
page_objects_path: './test/e2e/page_objects',
|
|
|
|
selenium : {
|
|
'start_process': false,
|
|
'host': 'hub-cloud.browserstack.com',
|
|
'port': 80
|
|
},
|
|
|
|
test_settings: {
|
|
default: {
|
|
globals: {
|
|
waitForConditionTimeout: 5000,
|
|
},
|
|
launch_url: process.env.TALK_ROOT_URL || 'http://localhost:3000',
|
|
desiredCapabilities: {
|
|
'browserstack.user': process.env.BROWSERSTACK_USER || 'coralproject2',
|
|
'browserstack.key': process.env.BROWSERSTACK_KEY,
|
|
'browserstack.local': true,
|
|
'browser': 'chrome',
|
|
'browserstack.debug': true,
|
|
'browserstack.networkLogs': true,
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
// Code to copy seleniumhost/port into test settings
|
|
for(const i in nightwatch_config.test_settings){
|
|
const config = nightwatch_config.test_settings[i];
|
|
config['selenium_host'] = nightwatch_config.selenium.host;
|
|
config['selenium_port'] = nightwatch_config.selenium.port;
|
|
}
|
|
|
|
module.exports = nightwatch_config;
|