parent
2795a34b0b
commit
1b8a990edb
|
@ -51,8 +51,10 @@ class MediaNotificationTest {
|
||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(videoTestPage.url) {
|
}.enterURLAndEnterToBrowser(videoTestPage.url) {
|
||||||
|
verifyPageContent(videoTestPage.content)
|
||||||
clickMediaPlayerPlayButton()
|
clickMediaPlayerPlayButton()
|
||||||
waitForPlaybackToStart()
|
waitForPlaybackToStart()
|
||||||
|
verifyPageContent("Media file is playing")
|
||||||
}.openNotificationShade {
|
}.openNotificationShade {
|
||||||
verifySystemNotificationExists(videoTestPage.title)
|
verifySystemNotificationExists(videoTestPage.title)
|
||||||
clickMediaSystemNotificationControlButton("Pause")
|
clickMediaSystemNotificationControlButton("Pause")
|
||||||
|
@ -119,6 +121,7 @@ class MediaNotificationTest {
|
||||||
verifyPageContent(audioTestPage.content)
|
verifyPageContent(audioTestPage.content)
|
||||||
clickMediaPlayerPlayButton()
|
clickMediaPlayerPlayButton()
|
||||||
waitForPlaybackToStart()
|
waitForPlaybackToStart()
|
||||||
|
verifyPageContent("Media file is playing")
|
||||||
}.openHomeScreen {
|
}.openHomeScreen {
|
||||||
verifyTabMediaControlButtonState("Pause")
|
verifyTabMediaControlButtonState("Pause")
|
||||||
clickTabMediaControlButton()
|
clickTabMediaControlButton()
|
||||||
|
@ -139,6 +142,7 @@ class MediaNotificationTest {
|
||||||
verifyPageContent(audioTestPage.content)
|
verifyPageContent(audioTestPage.content)
|
||||||
clickMediaPlayerPlayButton()
|
clickMediaPlayerPlayButton()
|
||||||
waitForPlaybackToStart()
|
waitForPlaybackToStart()
|
||||||
|
verifyPageContent("Media file is playing")
|
||||||
}.openNotificationShade {
|
}.openNotificationShade {
|
||||||
verifySystemNotificationExists("A site is playing media")
|
verifySystemNotificationExists("A site is playing media")
|
||||||
clickMediaSystemNotificationControlButton("Pause")
|
clickMediaSystemNotificationControlButton("Pause")
|
||||||
|
@ -159,7 +163,8 @@ class MediaNotificationTest {
|
||||||
verifySystemNotificationGone("A site is playing media")
|
verifySystemNotificationGone("A site is playing media")
|
||||||
}
|
}
|
||||||
|
|
||||||
// close notification shade before the next test
|
// close notification shade before and go back to regular mode before the next test
|
||||||
mDevice.pressBack()
|
mDevice.pressBack()
|
||||||
|
homeScreen { }.togglePrivateBrowsingMode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue