Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions conf/single.conf.js

This file was deleted.

19 changes: 3 additions & 16 deletions conf/parallel.conf.js → conf/test.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,18 @@ var config = {
'browser_version': 'latest',
'name': 'Parallel test 1'
},
{
'os': 'OS X',
'os_version': 'Monterey',
'browserName': 'Chrome',
'browser_version': 'latest',
'name': 'Parallel test 2'
},
{
'os' : 'OS X',
'os_version' : 'Big Sur',
'browserName' : 'Safari',
'name': 'Parallel test 3'
'name': 'Parallel test 2'
},
{
'browserName': 'Android',
'device': 'Samsung Galaxy S20',
'realMobile': 'true',
'name': 'Parallel test 4'
},
{
'browserName': 'iPhone',
'device': 'iPhone 12 Pro Max',
'realMobile': 'true',
'name': 'Parallel test 5'
}]
'name': 'Parallel test 3'
}]
};

exports.capabilities = [];
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"version": "0.0.1",
"description": " Selenium examples for Mocha and BrowserStack Automate",
"scripts": {
"test": "npm run single && npm run local && npm run parallel",
"single": "./node_modules/.bin/mocha specs/single_test.js conf/single.conf.js",
"local": "./node_modules/.bin/mocha specs/local_test.js conf/local.conf.js",
"parallel": "./node_modules/.bin/mocha specs/parallel_test.js conf/parallel.conf.js --timeout=60000"
"test": "./node_modules/.bin/mocha specs/test.js conf/test.conf.js --timeout=60000"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion specs/local_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var caps = require('../' + conf_file).capabilities;

var buildDriver = function(caps) {
return new webdriver.Builder().
usingServer('https://hub-cloud.browserstack.com/wd/hub').
usingServer('https://hub.browserstack.com/wd/hub').
withCapabilities(caps).
build();
};
Expand Down
53 changes: 0 additions & 53 deletions specs/single_test.js

This file was deleted.

2 changes: 1 addition & 1 deletion specs/parallel_test.js → specs/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var capabilities = require('../' + conf_file).capabilities;
var buildDriver = function(caps) {
return new Promise(function(resolve, reject) {
var driver = new webdriver.Builder().
usingServer('https://hub-cloud.browserstack.com/wd/hub').
usingServer('https://hub.browserstack.com/wd/hub').
withCapabilities(caps).
build();
resolve(driver);
Expand Down