backend/e2e/conf/mobile-chrome.js (view raw)
1'use strict';
2
3const orientation = process.env.ORIENTATION || 'PORTRAIT'; // LANDSCAPE|PORTRAIT
4
5/* eslint-disable jsdoc/valid-types */
6/** @type WebdriverIO.Config */
7const config = {
8 // Docker for Mac host address:
9 hostname: 'host.docker.internal',
10 // Appium port:
11 port: 4723,
12 // Appium path:
13 path: '/wd/hub',
14 capabilities: [
15 {
16 maxInstances: 1,
17 browserName: 'browser',
18 platformName: 'Android',
19 platformVersion: process.env.PLATFORM_VERSION,
20 deviceName: process.env.DEVICE_NAME || 'Android Emulator',
21 nativeWebScreenshot: true,
22 orientation,
23 },
24 ],
25 videos: {
26 enabled: true,
27 bitRate: 100000,
28 startDelay: 500,
29 stopDelay: 500,
30 },
31 maximizeWindow: false,
32 assetsDir: null,
33};
34
35exports.config = Object.assign({}, require('./chrome').config, config);