all repos — caroster @ d95489de238022fba2931520d1174ed2b9483154

[Octree] Group carpool to your event https://caroster.io

backend/e2e/conf/mobile-safari.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: 'safari',
18      platformName: 'iOS',
19      platformVersion: process.env.PLATFORM_VERSION || '13.3',
20      deviceName: process.env.IOS_DEVICE_NAME || 'iPhone 11',
21      orientation,
22    },
23  ],
24  appium: {
25    mjpegServerFramerate: 15,
26    mjpegServerScreenshotQuality: 100,
27  },
28  videos: {
29    enabled: true,
30    inputFormat: 'mjpeg',
31    rotate: orientation === 'LANDSCAPE' ? 90 : undefined,
32    port: 9100,
33    startDelay: 500,
34    stopDelay: 500,
35  },
36  maximizeWindow: false,
37  assetsDir: null,
38};
39
40exports.config = Object.assign({}, require('./chrome').config, config);