-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwdio.config.js
69 lines (67 loc) · 1.72 KB
/
wdio.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// @ts-check
const path = require('path');
// Type is very questionably declared in the global namespace via @wdio/types
/** @type {WebdriverIO.Config} */
const config = {
runner: 'local',
user: process.env.BROWSERSTACK_USERNAME,
key: process.env.BROWSERSTACK_ACCESS_KEY,
hostname: 'hub.browserstack.com',
specs: [path.resolve(__dirname, 'tests/e2e/specs/flow.test.ts')],
maxInstances: 1,
services: [
[
'browserstack',
{
app: process.env.BROWSERSTACK_APP_URL,
buildIdentifier: `${process.env.BUILD_NUMBER || `build-${new Date().toISOString()}`}`,
browserstackLocal: true,
testObservability: true,
testObservabilityOptions: {
projectName: 'CoMapeo',
buildName: `CoMapeo E2E Tests - ${new Date().toISOString()}`,
},
},
],
],
capabilities: [
{
platformName: 'android',
'appium:platformVersion': '12.0',
'appium:deviceName': 'Samsung Galaxy S22 Ultra',
'appium:automationName': 'UIAutomator2',
'appium:app': process.env.BROWSERSTACK_APP_URL,
'appium:autoGrantPermissions': true,
'bstack:options': {
projectName: 'CoMapeo',
buildName: 'CoMapeo Android Build',
sessionName: 'Run Android e2e tests',
appiumVersion: '2.12.1',
debug: true,
networkLogs: true,
gpsLocation: '0.198214, 78.472225',
},
},
],
logLevel: 'error',
waitforTimeout: 5000,
connectionRetryTimeout: 90000,
connectionRetryCount: 2,
framework: 'mocha',
mochaOpts: {
ui: 'bdd',
timeout: 300000,
},
reporters: [
[
'spec',
{
addConsoleLogs: true,
},
],
],
outputDir: './test-results',
};
module.exports = {
config,
};