Bug 1862383 - New high priority download UI tests

fenix/121.0
AndiAJ 8 months ago committed by mergify[bot]
parent 9c07a700fe
commit 6a38fc03aa

@ -471,4 +471,29 @@ class DownloadTest {
}
deleteDownloadedFileOnStorage(downloadFile)
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/244125
@Test
fun restartDownloadFromAppNotificationAfterConnectionIsInterruptedTest() {
downloadFile = "1GB.zip"
navigationToolbar {
}.enterURLAndEnterToBrowser(downloadTestPage.toUri()) {
waitForPageToLoad()
}.clickDownloadLink(downloadFile) {
verifyDownloadPrompt(downloadFile)
setNetworkEnabled(false)
}.clickDownload {
verifyDownloadFailedPrompt(downloadFile)
setNetworkEnabled(true)
clickTryAgainButton()
}
browserScreen {
}.openNotificationShade {
verifySystemNotificationExists("Firefox Fenix")
expandNotificationMessage()
clickDownloadNotificationControlButton("CANCEL")
}
deleteDownloadedFileOnStorage(downloadFile)
}
}

Loading…
Cancel
Save