Skip to content

Commit d3dcd4a

Browse files
committed
add diverse tests
1 parent bc66578 commit d3dcd4a

File tree

8 files changed

+2679
-1258
lines changed

8 files changed

+2679
-1258
lines changed

conf/base.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ exports.config = {
33
key: process.env.BROWSERSTACK_ACCESS_KEY || 'BROWSERSTACK_ACCESS_KEY',
44

55
updateJob: false,
6-
specs: ['./tests/specs/test.js'],
6+
specs: ['./tests/m*/**'],
77
exclude: [],
88

99
logLevel: 'warn',

conf/test.conf.js

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,42 @@
11
const { config: baseConfig } = require('./base.conf.js');
2-
32
const parallelConfig = {
43
maxInstances: 10,
54
commonCapabilities: {
65
'bstack:options': {
7-
buildName: 'browserstack build',
8-
source: 'webdriverio:sample-master:v1.2'
6+
projectName: 'sample-tests-ai',
7+
buildName: 'wdio-mocha-automate'
98
}
109
},
11-
services: [
12-
[
13-
'browserstack',
14-
{ buildIdentifier: '#${BUILD_NUMBER}' },
15-
],
16-
],
1710
capabilities: [
1811
{
19-
browserName: 'chrome',
20-
browserVersion: 'latest',
12+
browserName: 'Chrome',
2113
'bstack:options': {
14+
browserVersion: '120.0',
2215
os: 'Windows',
23-
osVersion: '10',
24-
},
16+
osVersion: '10'
17+
}
2518
},
2619
{
27-
browserName: 'safari',
28-
browserVersion: 'latest',
20+
browserName: 'Safari',
2921
'bstack:options': {
22+
browserVersion: '15.6',
3023
os: 'OS X',
31-
osVersion: 'Big Sur',
32-
},
24+
osVersion: 'Monterey'
25+
}
3326
},
3427
{
35-
browserName: 'chrome',
28+
browserName: 'Chromium',
3629
'bstack:options': {
37-
deviceName: 'Samsung Galaxy S20',
38-
},
39-
},
30+
deviceOrientation: 'portrait',
31+
deviceName: 'iPhone 13',
32+
osVersion: '15'
33+
}
34+
}
4035
],
4136
};
42-
4337
exports.config = { ...baseConfig, ...parallelConfig };
44-
4538
// Code to support common capabilities
4639
exports.config.capabilities.forEach(function (caps) {
4740
for (var i in exports.config.commonCapabilities)
4841
caps[i] = { ...caps[i], ...exports.config.commonCapabilities[i]};
49-
});
42+
});

0 commit comments

Comments
 (0)