-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwdio.ci.config.js
More file actions
88 lines (86 loc) · 2.77 KB
/
wdio.ci.config.js
File metadata and controls
88 lines (86 loc) · 2.77 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// @ts-check
const path = require('path');
const shortSha = process.env.GITHUB_SHORT_SHA || 'manual';
const prTitle = process.env.GITHUB_PR_TITLE;
// 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/passcode/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/audio/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/exchange/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/multiple-projects/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/observations/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/onboarding/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/settings/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/solo-project/index.tsx'),
path.resolve(__dirname, 'tests/e2e/specs/team/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/tracks/index.test.ts'),
path.resolve(__dirname, 'tests/e2e/specs/menu/index.test.ts'),
//temporarily removing as remote archive seems to be down
//path.resolve(__dirname, 'tests/e2e/specs/remote-archive/index.test.ts'),
// path.resolve(__dirname, 'tests/e2e/specs/photos/index.test.ts'),
],
maxInstances: 5,
services: [
[
'browserstack',
{
app: process.env.BROWSERSTACK_APP_URL,
buildIdentifier: '#${DATE_TIME}',
browserstackLocal: true,
testObservability: true,
testObservabilityOptions: {
projectName: 'CoMapeo',
buildName: `${prTitle || 'Manual Run'} – ${shortSha}`,
},
},
],
],
capabilities: [
{
platformName: 'android',
'appium:platformVersion': '13.0',
'appium:deviceName': 'Samsung Galaxy S23',
'appium:automationName': 'UIAutomator2',
'appium:app': process.env.BROWSERSTACK_APP_URL,
'appium:autoGrantPermissions': true,
'appium:newCommandTimeout': 150,
'bstack:options': {
projectName: 'CoMapeo',
buildName: `${prTitle || 'Manual Run'} – ${shortSha}`,
sessionName: `E2E: ${shortSha}`,
appiumVersion: '2.12.1',
debug: true,
networkLogs: true,
gpsLocation: '0.198214, 78.472225',
idleTimeout: 300,
},
},
],
logLevel: 'error',
waitforTimeout: 5000,
connectionRetryTimeout: 180000,
connectionRetryCount: 3,
framework: 'mocha',
mochaOpts: {
ui: 'bdd',
timeout: 300000,
},
reporters: [
[
'spec',
{
addConsoleLogs: true,
},
],
],
outputDir: './test-results',
};
module.exports = {
config,
};