oppia / oppia-android

A free, online & offline learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
315 stars 517 forks source link

RecyclerView/ScrollView Test cases failing when in Landscape Mode. #288

Open rt4914 opened 4 years ago

rt4914 commented 4 years ago

RecyclerView/ScrollView Test cases failing when in Landscape Mode.

If we keep device in landscape mode and run test-cases they fail because of animation issues

Screenshot 2019-10-29 at 9 02 39 PM

There are two solutions to this issue:

  1. Quick Fix: Go to Developer Options in device and turn off these three values:

    • Window animation scale
    • Transition animation scale
    • Animator duration scale
  2. Full-Proof Fix: This should be fixed in code only but will have to dig deep into the final solution.

rt4914 commented 4 years ago

Solution suggested by @BenHenning

https://stackoverflow.com/questions/43751079/espresso-testing-disable-animation/43861179#43861179

rt4914 commented 3 years ago

This issue might have been solved, not sure. To check this we should activate the animations and run all tests to check if they pass or not.