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

Introduce Fake Audio on Espresso #2255

Closed
anandwana001 opened this issue Dec 13, 2020 · 1 comment
Closed

Introduce Fake Audio on Espresso #2255

anandwana001 opened this issue Dec 13, 2020 · 1 comment
Labels
Z-ibt Temporary label for Ben to keep track of issues he's triaged.

Comments

@anandwana001
Copy link
Contributor

Describe the bug
Testing Audio on Espresso is a bit tricky. We cannot test audio when the audio is playing in a real-time because that's the idle state in espresso and nothing can be a check on idle state.

Expected behaviour
ExplorationActivityTest.kt - Check @Ignore tests

  1. Test is only passing on Robolectric as for Espresso we need to check the pause button is visible, but the pause button is visible only in the idle state. So, we need a Fake Library here to help us with a different state of audio.
  2. 1 test is ignored, with the same reason above and it is also not passing on robolectric.
  3. Remove waitForTheView

Additional context
Reference - #2216 (comment)

@anandwana001
Copy link
Contributor Author

duplicate #2480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-ibt Temporary label for Ben to keep track of issues he's triaged.
Development

No branches or pull requests

2 participants