Skip to content

20.46.0

Latest

Choose a tag to compare

@d4vidi d4vidi released this 16 Nov 14:31
· 8 commits to master since this release

What's Changed

Android

Configurable system UI (status bar, keyboard, navigation bar) on device allocation, for Android (@d4vidi, #4863)
Read about the new systemUI configuration option here: https://wix.github.io/Detox/docs/config/devices

Examples:

Explicit configuration

"detox": {
  "devices": {
      "android.emulator": {
        "type": "android.emulator",
        "device": {
          "avdName": "Pixel_API_35"
        },

        "systemUI": {
          "pointerLocationBar": "hide",
          "touches": "show",
          "navigationMode": "3-button",
          "statusBar": {
            "notifications": "hide",
            "clock": "1200",
            "wifiSignal": "none",
            "mobileSignal": "none",
            "battery": "full",
            "charging": false
          }
        }
      }

  }
}
image

Extending a configuration preset - align google emulators to Genymotion's

(See preset options here)

  "systemUI": {
    "extends": "genymotion",
    "pointerLocationBar": "show",
    "touches": "show",
    "navigationMode": "3-button",
    "statusBar": {
      "clock": "1948",
    }
  }
image

Full Changelog: 20.45.1...20.46.0