mapbox-maps-android
mapbox-maps-android copied to clipboard
Robolectric Test for AlertDialog fail after bumping target SDK version to 30
The robolectric test for AlertDialog fails after we bump the target SDK version to 30 in https://github.com/mapbox/mapbox-maps-android/pull/514
The root issue seems to be that after bumping the target SDK version to 30. the following code block didn't trigger the alert dialog's handler logic:
alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE)
button.performClick()
For now I ignored these test, but would be good to revisit later when the Robolectric works better with target SDK version 30.