Bug 1869568 - Use new large test file in downloads related UI tests

fenix/122.0
AndiAJ 6 months ago committed by mergify[bot]
parent d91971ecc2
commit 9d663ae45c

@ -8,7 +8,6 @@ import androidx.core.net.toUri
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.mozilla.fenix.customannotations.SmokeTest
@ -132,12 +131,11 @@ class DownloadTest {
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/451563
@Ignore("Failing: Bug https://bugzilla.mozilla.org/show_bug.cgi?id=1813521")
@SmokeTest
@Test
fun pauseResumeCancelDownloadTest() {
downloadRobot {
openPageAndDownloadFile(url = downloadTestPage.toUri(), downloadFile = "1GB.zip")
openPageAndDownloadFile(url = downloadTestPage.toUri(), downloadFile = "3GB.zip")
}
mDevice.openNotification()
notificationShade {
@ -147,7 +145,7 @@ class DownloadTest {
verifySystemNotificationExists("Download paused")
clickDownloadNotificationControlButton("RESUME")
clickDownloadNotificationControlButton("CANCEL")
verifySystemNotificationDoesNotExist("1GB.zip")
verifySystemNotificationDoesNotExist("3GB.zip")
mDevice.pressBack()
}
browserScreen {
@ -260,11 +258,10 @@ class DownloadTest {
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/457112
@Ignore("Failing: https://bugzilla.mozilla.org/show_bug.cgi?id=1840994")
@Test
fun systemNotificationCantBeDismissedWhileInProgressTest() {
downloadRobot {
openPageAndDownloadFile(url = downloadTestPage.toUri(), downloadFile = "1GB.zip")
openPageAndDownloadFile(url = downloadTestPage.toUri(), downloadFile = "3GB.zip")
}
browserScreen {
}.openNotificationShade {
@ -306,7 +303,7 @@ class DownloadTest {
homeScreen {
}.togglePrivateBrowsingMode()
downloadRobot {
openPageAndDownloadFile(url = downloadTestPage.toUri(), downloadFile = "1GB.zip")
openPageAndDownloadFile(url = downloadTestPage.toUri(), downloadFile = "3GB.zip")
}
browserScreen {
}.openTabDrawer {
@ -326,7 +323,7 @@ class DownloadTest {
homeScreen {
}.togglePrivateBrowsingMode()
downloadRobot {
openPageAndDownloadFile(url = downloadTestPage.toUri(), downloadFile = "1GB.zip")
openPageAndDownloadFile(url = downloadTestPage.toUri(), downloadFile = "3GB.zip")
}
browserScreen {
}.openTabDrawer {
@ -365,10 +362,9 @@ class DownloadTest {
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/244125
@Ignore("Failing: Bug https://bugzilla.mozilla.org/show_bug.cgi?id=1813521")
@Test
fun restartDownloadFromAppNotificationAfterConnectionIsInterruptedTest() {
downloadFile = "1GB.zip"
downloadFile = "3GB.zip"
navigationToolbar {
}.enterURLAndEnterToBrowser(downloadTestPage.toUri()) {

Loading…
Cancel
Save