android-test icon indicating copy to clipboard operation
android-test copied to clipboard

Feature Request: Provide a way to disable all system popups

Open matejdro opened this issue 5 years ago • 4 comments

We are currently using android emulator to run periodic espresso tests. However, tests can occasionally fail if Android suddenly decides to open popup over our app, which makes all espresso matchers fail since our app is not the focused window anymore.

Example popups:

  • System UI (or any preinstalled system app) has stopped / is not responding image

  • Viewing full screen - To exit swipe down

image

Maybe this could be an option in developer options or somehow triggered/enabled by espresso or UiAutmator.

matejdro avatar Jul 05 '19 11:07 matejdro

Test butler already does this https://github.com/linkedin/test-butler#what-does-it-do, but a first-party implementation would be really nice here.

TWiStErRob avatar Jul 05 '19 12:07 TWiStErRob

Yes, I'm aware of test butler. Unfortunately, most of our apps rely on play services, and test butler cannot be used on Google API images, so we cannot use it.

matejdro avatar Jul 05 '19 12:07 matejdro

Just a heads up, there appears to be an easy way to disable fullscreen popups:

adb shell settings put secure immersive_mode_confirmations confirmed

matejdro avatar Sep 04 '19 11:09 matejdro

Any insights regarding this issue ?

I'm still having it on CI and i can't adb as i don't have the access to the device and need the google play services so i can't use TestButler

github-maxime-liege avatar Apr 04 '22 14:04 github-maxime-liege