mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Robolectric Test for AlertDialog fail after bumping target SDK version to 30

Open pengdev opened this issue 4 years ago • 0 comments

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.

pengdev avatar Aug 18 '21 17:08 pengdev