Add support for androidx.appcompat.widget.SearchView

Open Beginner friendly
#681 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
62/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
android, java
Domain
mobile, testing

Research direction

Open TypeTextAction.java at the matcher list linked in the issue and compare the existing android.widget.SearchView handling. Add the androidx.appcompat.widget.SearchView matcher, then run the relevant AndroidX Test Espresso action tests to confirm both SearchView types remain supported.

Written by the indexing model from the issue text.

Description

Description

TypeTextAction supports android.widget.SearchView, but not androidx.appcompat.widget.SearchView

https://github.com/android/android-test/blob/9f059d364bfed8aaa11ffd8c09f1bb27201ce01b/espresso/core/java/androidx/test/espresso/action/TypeTextAction.java#L111

Need to add this to the list of matchers in the line above:

isAssignableFrom(androidx.appcompat.widget.SearchView.class)
AndroidX Test and Android OS Versions

3.3.0-rc1

Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
1d 14h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/android-test

All issues in android/android-test

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.