-
Notifications
You must be signed in to change notification settings - Fork 3
/
e2e.config.js
64 lines (56 loc) · 2.51 KB
/
e2e.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
/* eslint-disable */
exports.config = {
// 4723 is the default port for Appium
port: 4723,
// How much detail should be logged. The options are:
// 'silent', 'verbose', 'command', 'data', 'result', 'error'
logLevel: 'error',
// This defines which kind of device we want to test on, as well as how it should be
// configured.
capabilities: [
{
platformName: 'iOS',
platformVersion: '12.0',
deviceName: 'iPhone 7', // this will launch the iPhone 8 emulator
app: '/srv/atlas/acmobilewallet/src-cordova/platforms/ios/build/emulator/wallet.app',
autoWebview: true,
autoGrantPermissions: true,
},
],
// {
// // 'Android' or 'iOS'
// platformName: 'Android',
// // The version of the Android or iOS system
// platformVersion: '8.0',
// // For Android, Appium uses the first device it finds using "adb devices". So, this
// // string simply needs to be non-empty.
// // For iOS, this must exactly match the device name as seen in Xcode.
// deviceName: 'any',
// // Where to find the .apk or .ipa file to install on the device. The exact location
// // of the file may change depending on your Cordova version.
// app: '/srv/atlas/acmobilewallet/src-cordova/platforms/android/app/build/outputs/apk/debug/app-debug.apk',
// // By default, Appium runs tests in the native context. By setting autoWebview to
// // true, it runs our tests in the Cordova context.
// autoWebview: true,
// // When set to true, it will not show permission dialogs, but instead grant all
// // permissions automatically.
// autoGrantPermissions: true,
// },
// Where the files we are testing can be found.
specs: ['./tests/e2e/specs/**/*.js'],
// Use the Appium plugin for Webdriver. Without this, we would need to run appium
// separately on the command line.
services: ['appium'],
// The reporter is what formats your test results on the command line. 'spec' lists
// the names of the tests with a tick or X next to them. See
// https://www.npmjs.com/search?q=wdio-reporter for a full list of reporters.
reporters: ['spec'],
// wdio will run your tests using the framework below. You can choose from several,
// much like the reporters. The full list is at https://www.npmjs.com/search?q=wdio-framework
framework: 'jasmine',
// By default, Jasmine times out within 10 seconds. This is not really enough time
// for us as it takes a while for Appium to get set up.
jasmineNodeOpts: {
defaultTimeoutInterval: 90000,
},
};