From 19dd057cd512541c5640ff94818ca6b022908df5 Mon Sep 17 00:00:00 2001 From: Oana Horvath Date: Thu, 14 May 2020 17:01:09 +0300 Subject: [PATCH] MediaNotificationTest: close media notification shade after each test (#10649) --- .../java/org/mozilla/fenix/ui/MediaNotificationTest.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/MediaNotificationTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/MediaNotificationTest.kt index 630a2d265..c2379d39c 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/MediaNotificationTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/MediaNotificationTest.kt @@ -72,6 +72,9 @@ class MediaNotificationTest { notificationShade { verifySystemNotificationGone(videoTestPage.title) } + + // close notification shade before the next test + mDevice.pressBack() } @Test @@ -102,6 +105,9 @@ class MediaNotificationTest { notificationShade { verifySystemNotificationGone(audioTestPage.title) } + + // close notification shade before the next test + mDevice.pressBack() } @Test @@ -152,5 +158,8 @@ class MediaNotificationTest { notificationShade { verifySystemNotificationGone("A site is playing media") } + + // close notification shade before the next test + mDevice.pressBack() } }