Detox icon indicating copy to clipboard operation
Detox copied to clipboard

[Epic] Extend system interaction support

Open asafkorem opened this issue 1 year ago • 2 comments

This epic extends the epic System interactions on iOS to Android, and adds new functionalities for both platforms.

The initial support on iOS, which will now be mirrored on Android, includes:

### Tasks
- [ ] https://github.com/wix/Detox/issues/4467
- [ ] https://github.com/wix/Detox/issues/4468
- [ ] https://github.com/wix/Detox/issues/4469

For Android, we will use UIAutomator (UIDevice) to achieve functional parity in areas where Espresso and current Detox APIs falls short.

The goal of this effort is to facilitate system-level interactions with operating system features such as alerts (dialogs), toasts, and more.

Upcoming enhancements will focus on enabling new features that leverage system-level interactions, including:

### Tasks
- [ ] https://github.com/wix/Detox/issues/4465
- [ ] https://github.com/wix/Detox/issues/4466
- [ ] [System] iOS: Support push notifications interactions.
- [ ] [System] iOS: Support system-level interactions with in-app photo library (photo selection).
- [ ] https://github.com/wix/Detox/issues/4483

Last task in this list is specifically required for embedded web-views that prevent JS injection and where our webview APIs are ineffective.

asafkorem avatar Apr 25 '24 06:04 asafkorem

Do you have an ETA for System interactions ? Will be possibile to swipe away/close a push notification for example ? My example: I receive a push notification and want to press a button thats in the top left corner, and because of the push notification the button seems to be visible for detox, but the it tries to tap it, the notification is pressed and the test fails

sanduluca avatar Sep 21 '24 09:09 sanduluca

No ETA's ATM, we're planning to reevaluate the priority of Android related improvements soon enough though.

d4vidi avatar Feb 03 '25 14:02 d4vidi