oppia-android
oppia-android copied to clipboard
Allow tests to orchestrate Glide to test image loading in testing environments
Is your feature request related to a problem? Please describe. Currently, there is no way to test of loading an image using Glide with the help of caching the image locally. Tests of images shouldn't depend on the internet and should use cache but for ImageInteraction we can't use Roboelectric neither we can use the caching setup with Gradle.
Describe alternatives you've considered In #1492 we've used a timeout of 5 seconds but that can be flaky depending upon the type of internet connectivity also that is an antipattern for these types of tests (see https://developer.android.com/training/testing/espresso/idling-resource#identify-when-needed)
Removing @aggarwalpulkit596 due to inactivity.