Last active
December 21, 2023 00:53
-
-
Save rebers/b640b1663c98d4436ecabb06270ff091 to your computer and use it in GitHub Desktop.
Nightwatch.js BrowserStack Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('babel-register'); | |
const testEnv = require('../../config/test.env.js'); | |
// http://nightwatchjs.org/guide#settings-file | |
module.exports = { | |
src_folders: ['test/e2e/specs'], | |
output_folder: 'test/e2e/reports', | |
custom_assertions_path: ['test/e2e/custom-assertions'], | |
selenium: { | |
start_process: false, | |
}, | |
test_settings: { | |
default: { | |
selenium_port: 80, | |
selenium_host: 'hub-cloud.browserstack.com', | |
silent: true, | |
desiredCapabilities: { | |
build: 'nightwatch-browserstack', | |
'browserstack.user': testEnv.BROWSERSTACK_USERNAME || 'BROWSERSTACK_USERNAME', | |
'browserstack.key': testEnv.BROWSERSTACK_ACCESS_KEY || 'BROWSERSTACK_ACCESS_KEY', | |
'browserstack.debug': true, | |
'browserstack.local': true, | |
javascriptEnabled: true, | |
acceptSslCerts: true, | |
}, | |
}, | |
ie9: { | |
desiredCapabilities: { | |
browserName: 'ie', | |
browserVersion: '9.0', | |
}, | |
}, | |
ie10: { | |
desiredCapabilities: { | |
browserName: 'ie', | |
browserVersion: '10.0', | |
}, | |
}, | |
ie11: { | |
desiredCapabilities: { | |
browserName: 'ie', | |
browserVersion: '11.0', | |
}, | |
}, | |
edge: { | |
desiredCapabilities: { | |
browserName: 'edge', | |
browserVersion: '13.0', | |
}, | |
}, | |
chrome: { | |
desiredCapabilities: { | |
browserName: 'chrome', | |
}, | |
}, | |
firefox: { | |
desiredCapabilities: { | |
browserName: 'firefox', | |
}, | |
}, | |
iphone: { | |
desiredCapabilities: { | |
browserName: 'iPhone', | |
platform: 'MAC', | |
device: 'iPhone 5', | |
}, | |
}, | |
android: { | |
desiredCapabilities: { | |
browserName: 'android', | |
platform: 'ANDROID', | |
device: 'Samsung Galaxy S5', | |
}, | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment