wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.25k stars 1.92k forks source link

[Epic] Extend system interaction support #4464

Open asafkorem opened 7 months ago

asafkorem commented 7 months ago

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.

sanduluca commented 2 months ago

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