android / android/android-test
Espresso Testing for Picture in Picture
- 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
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