UNPKG

@devicecloud.dev/dcd

Version:

Better cloud maestro testing

51 lines (50 loc) 2.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deviceFlags = void 0; const core_1 = require("@oclif/core"); const device_types_1 = require("../../types/domain/device.types"); /** * Device-specific flags for Android and iOS configuration */ exports.deviceFlags = { 'android-api-level': core_1.Flags.string({ description: '[Android only] Android API level to run your flow against', options: Object.values(device_types_1.EAndroidApiLevels), }), 'android-device': core_1.Flags.string({ description: '[Android only] Android device to run your flow against', options: Object.values(device_types_1.EAndroidDevices), }), 'device-locale': core_1.Flags.string({ description: 'Locale that will be set to a device, ISO-639-1 code and uppercase ISO-3166-1 code e.g. "de_DE" for Germany', }), 'google-play': core_1.Flags.boolean({ aliases: ['google-play'], default: false, description: '[Android only] Run your flow against Google Play devices', }), 'ios-device': core_1.Flags.string({ description: '[iOS only] iOS device to run your flow against', options: Object.values(device_types_1.EiOSDevices), }), 'ios-version': core_1.Flags.string({ description: '[iOS only] iOS version to run your flow against', options: Object.values(device_types_1.EiOSVersions), }), orientation: core_1.Flags.string({ description: '[Android only] The orientation of the device to run your flow against (0 = portrait, 90 = landscape)', options: ['0', '90'], }), 'show-crosshairs': core_1.Flags.boolean({ default: false, description: '[Android only] Display crosshairs for screen interactions during test execution', }), 'maestro-chrome-onboarding': core_1.Flags.boolean({ default: false, description: '[Android only] Force Maestro-based Chrome onboarding - note: this will slow your tests but can fix browser related crashes. See https://docs.devicecloud.dev/reference/chrome-onboarding for more information.', }), 'android-no-snapshot': core_1.Flags.boolean({ default: false, description: '[Android only] Force cold boot instead of using snapshot boot. This is automatically enabled for API 35+ but can be used to force cold boot on older API levels.', }), };