android / android/android-test

Feature Request: Provide a way to disable all system popups

Open
#406 4 comments 4 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

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](https://user-images.githubusercontent.com/507922/60720872-61d16100-9f2c-11e9-8894-7daf95b5b794.png)

* Viewing full screen - To exit swipe down

![image](https://user-images.githubusercontent.com/507922/60720883-6ac23280-9f2c-11e9-9c90-d79ae9f0c8d8.png)

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

Contributor guide

Open the contributing guide

Research direction

The issue names Android emulator runs, Espresso tests, Developer options, and UiAutomator, but no repository file or test entry point. Start by tracing how emulator or test configuration controls system UI, then define a supported mechanism whose completion criterion is preventing system popups from taking focus during periodic tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.