android / android/android-test

Espresso Testing for Picture in Picture

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

Description

### Description
UiSelector not able to find text or actions in Picture in Picture window.

### Steps to Reproduce
An espresso test for Picture in Picture scenario.

### Expected Results
UiSelector should be able to match any text in PIP window.

assertEquals(uiDevice.findObject(
UiSelector().className("androidx.appcompat.widget.TypefacedTextView").text("Sample Text")
).exists())

### Actual Results
the assertion fails.

### AndroidX Test and Android OS Versions
android version - 10
espresso - 3.2.0

### Link to a public git repo demonstrating the problem:

Contributor guide

Open the contributing guide

Research direction

No source file or public reproduction repository is provided. Start by reproducing the Espresso 3.2.0 assertion on Android 10 and investigate UiSelector lookup for the Picture in Picture window; done means the selector can find the displayed text or actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.