hiroaki icon indicating copy to clipboard operation
hiroaki copied to clipboard

UI Tests on Android Pie fails because of clear text network

Open tasomaniac opened this issue 6 years ago • 2 comments

Android Pie has changed the behavior so that the app would crash by default in case non https request was made. So this happens on UI tests.

Tests should disable this feature.

tasomaniac avatar Jan 19 '19 18:01 tasomaniac

You think that should be disabled by the framework for mocking requests? It might be a specific scenario that could be properly handled by clients with that need in the client code base? It seems fair you have the chance to disable SSL for tests (as in passing an OkHttpClient not configured for it) but in that case Android suggests to pass in a white list that is linked from the test application manifest androidTest/AndroidManifest.xml.

JorgeCastilloPrz avatar May 09 '19 14:05 JorgeCastilloPrz

Hey, I don't think it should be the responsibility of the framework. Sorry for the confusion on the original description 😄 It is just that the existing androidTests under the app module would fail on Android Pie devices in this repo.

tasomaniac avatar Feb 16 '20 14:02 tasomaniac