From 55e4a7c651a434ca1aefe2c5e6011cda88e46958 Mon Sep 17 00:00:00 2001 From: Oana Horvath Date: Thu, 14 May 2020 17:01:09 +0300 Subject: [PATCH] [fenix] MediaNotificationTest: close media notification shade after each test (https://github.com/mozilla-mobile/fenix/pull/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() } }