Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Can not give a query to "Play From Search Test" #41

Open
avalanchas opened this issue Aug 15, 2022 · 1 comment
Open

Bug: Can not give a query to "Play From Search Test" #41

avalanchas opened this issue Aug 15, 2022 · 1 comment

Comments

@avalanchas
Copy link

avalanchas commented Aug 15, 2022

Description

In the class TestDescriptor the playFromSearch in line 39 sets queryRequired to false.
Therefore, the query is never shown in the configuration dialog, the dialog only adds EditText fields for tests with this field set to true

How to reproduce

  • Install current version of the Media Controller Tester app
  • Test any app that declares "PLAY_FROM_SEARCH" support
  • Go to test suites, run either basic tests or auto tests -> "Play from Search Test" fails (if the app doesn't play anything from an empty search query

Expected behaviour

The test result card says

Enter the search query in the query field

So that's what I would expect, to be able to enter that. Furthermore, one might argue that an app should get a passing grade when the search query is empty and the player ends up in either the starting state or any other state than "error"

Devices, OS

All

@benlaverriere
Copy link

I tripped over this as well. I imagine this query wasn't marked "required" since apps should also respond safely to empty search queries, but in this setup I think the suite can never pass. Maybe we could have one test for PLAY_FROM_SEARCH that has queryRequired = true and another with false? I'm happy to attempt a PR if maintainers are open to this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants