Releases: wix/Detox
20.46.3
20.46.1
What's Changed
Fixes
- Android: System-UI glitches (e.g. notifications) by @d4vidi in #4878
- iOS: Notification flakiness on iOS 18 fix by @markdevocht in #4890
Internal
- build: move to yarn 4 by @noomorph in #4881
- (CI) Limit Genymotion cloud compatibility testing by @d4vidi in #4889
Full Changelog: 20.46.0...20.46.1
20.46.0
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
}
}
}
}
}
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",
}
}
Full Changelog: 20.45.1...20.46.0
20.45.1
v20.45.0
What's Changed
iOS
- #4749 - Detox iOS18 compatibility by @markdevocht in #4816
- #4760 - Swift support for Detox by @markdevocht in #4841
Android
Full Changelog: 20.44.0...20.45.0
20.44.0
20.43.0
20.42.0
What's Changed
Features
New API - device.resetAppState([...bundleIds]) (#4819, @noomorph) 🙌🏻🎉
Introducing a new efficient way to reset app state without full uninstall/reinstall cycles.
On Android, uses pm clear for fast data clearing, while iOS implements a smart backup/restore mechanism that preserves app binaries. Perfect for test isolation and faster CI pipelines.
Supports resetting multiple apps at once: await device.resetAppState('com.app1', 'com.app2') or just the current app with await device.resetAppState(). Also integrates with device.launchApp({resetAppState: true}) for seamless test setup.
Read all about it here: https://wix.github.io/Detox/docs/api/device/#deviceresetappstatebundleids
Additional Fixes
-
iOS: Device creation with new
applesimutils(#4836)
Fixes issue with automatic iOS device creation with newer versions of applesimutils (>0.9.10) -
Sanitize dollar sign in artifact names (fix for #4798)
Android tests with$in the test name previously had an issue with saving artifacts. -
Broken Jest output on early setup errors (#4804)
Early environment setup errors induced garbled logs likem\nm\nm\n[\n[\nm\n, thanks @MadSandwich for the repro
Full Changelog: 20.41.3...20.42.0