parent
7feae98944
commit
fed3f2fe91
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
package org.mozilla.fenix.ui
|
package org.mozilla.fenix.ui
|
||||||
|
|
||||||
|
import androidx.test.uiautomator.UiSelector
|
||||||
import okhttp3.mockwebserver.MockWebServer
|
import okhttp3.mockwebserver.MockWebServer
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
|
@ -43,6 +44,12 @@ class MediaNotificationTest {
|
||||||
@After
|
@After
|
||||||
fun tearDown() {
|
fun tearDown() {
|
||||||
mockWebServer.shutdown()
|
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
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue