1
0
Fork 0

for #10759: close notification shade if still open (#10819)

master
Oana Horvath 2020-05-21 18:41:00 +03:00 committed by GitHub
parent 7feae98944
commit fed3f2fe91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,7 @@
package org.mozilla.fenix.ui
import androidx.test.uiautomator.UiSelector
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Before
@ -43,6 +44,12 @@ class MediaNotificationTest {
@After
fun tearDown() {
mockWebServer.shutdown()
// verify if the notification tray is expanded and should be closed before the next test
val notificationShade =
mDevice.findObject(UiSelector().resourceId("com.android.systemui:id/notification_stack_scroller"))
if (notificationShade.exists())
mDevice.pressBack()
}
@Test