Skip to content

Commit 36cb66f

Browse files
authored
Merge pull request #48 from Ankit098/v7
make v7 wdio as master
2 parents ffd94a9 + 4189b41 commit 36cb66f

5 files changed

Lines changed: 2165 additions & 4673 deletions

File tree

conf/base.conf.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ exports.config = {
66
specs: ['./tests/specs/test.js'],
77
exclude: [],
88

9-
capabilities: [
10-
{
11-
browserName: 'Chrome',
12-
build: 'browserstack-build-1',
13-
},
14-
],
15-
169
logLevel: 'warn',
1710
coloredLogs: true,
1811
screenshotPath: './errorShots/',
@@ -21,7 +14,7 @@ exports.config = {
2114
connectionRetryTimeout: 90000,
2215
connectionRetryCount: 3,
2316
hostname: 'hub.browserstack.com',
24-
services: [['@wdio/browserstack-service']],
17+
services: [['browserstack']],
2518

2619
before: function () {
2720
var chai = require('chai');

conf/local-test.conf.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ const localConfig = {
44
// Adding browserstackLocal to browserstack-service to initiate local binary
55
services: [
66
[
7-
'@wdio/browserstack-service',
7+
'browserstack',
88
{ browserstackLocal: true, opts: { forcelocal: false } },
99
],
1010
],
1111
capabilities: [
1212
{
1313
browserName: 'chrome',
14-
build: 'browserstack-build-1',
14+
browserVersion: 'latest',
15+
'bstack:options': {
16+
buildName: 'browserstack-build-1',
17+
}
1518
},
1619
],
1720
specs: ['./tests/specs/local_test.js'],

conf/test.conf.js

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
1-
const { config: baseConfig } = require("./base.conf.js");
1+
const { config: baseConfig } = require('./base.conf.js');
22

33
const parallelConfig = {
44
maxInstances: 10,
55
commonCapabilities: {
6-
build: 'browserstack-build-1',
6+
'bstack:options': {
7+
buildName: 'browserstack-build-1',
8+
}
79
},
8-
capabilities: [{
9-
browserName: 'chrome',
10-
browserVersion: 'latest',
11-
os: 'Windows',
12-
osVersion: '10'
13-
}, {
14-
browserName: 'safari',
15-
browserVersion: 'latest',
16-
os: 'OS X',
17-
osVersion: 'Big Sur'
18-
}, {
19-
browserName: 'chrome',
20-
device: 'Samsung Galaxy S20'
21-
}],
10+
capabilities: [
11+
{
12+
browserName: 'chrome',
13+
browserVersion: 'latest',
14+
'bstack:options': {
15+
os: 'Windows',
16+
osVersion: '10',
17+
},
18+
},
19+
{
20+
browserName: 'safari',
21+
browserVersion: 'latest',
22+
'bstack:options': {
23+
os: 'OS X',
24+
osVersion: 'Big Sur',
25+
},
26+
},
27+
{
28+
browserName: 'chrome',
29+
'bstack:options': {
30+
deviceName: 'Samsung Galaxy S20',
31+
},
32+
},
33+
],
2234
};
2335

2436
exports.config = { ...baseConfig, ...parallelConfig };
2537

2638
// Code to support common capabilities
2739
exports.config.capabilities.forEach(function (caps) {
28-
for (var i in exports.config.commonCapabilities) caps[i] = caps[i] || exports.config.commonCapabilities[i];
40+
for (var i in exports.config.commonCapabilities)
41+
caps[i] = { ...caps[i], ...exports.config.commonCapabilities[i]};
2942
});

0 commit comments

Comments
 (0)