Skip to content

Commit 2f85a1d

Browse files
committed
always search for relevant notification
1 parent 1f4e7d5 commit 2f85a1d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • libnavigation-core/src/androidTest/java/com/mapbox/navigation/core/trip/service

libnavigation-core/src/androidTest/java/com/mapbox/navigation/core/trip/service/TripServiceTest.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.mapbox.navigation.core.trip.service
22

3-
import android.os.Build
43
import androidx.test.espresso.Espresso.onIdle
54
import androidx.test.ext.junit.runners.AndroidJUnit4
65
import androidx.test.uiautomator.By
@@ -41,11 +40,7 @@ internal class TripServiceTest :
4140
By.res("com.mapbox.navigation.core.test:id/freeDriveText")
4241

4342
openNotification()
44-
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
45-
// Android 12 always places foreground notification on top,
46-
// no need to scroll and look for it
47-
searchForMyForegroundNotification(freeDriveText)
48-
}
43+
searchForMyForegroundNotification(freeDriveText)
4944

5045
assertFalse(hasObject(etaContent))
5146
assertTrue(hasObject(freeDriveText))

0 commit comments

Comments
 (0)