2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00

Bug 1829104 - Re-enable verifyInsecurePageSecuritySubMenuTest UI test

This commit is contained in:
AndiAJ 2023-05-23 14:41:33 +03:00 committed by mergify[bot]
parent f952369648
commit f4af90e782
2 changed files with 6 additions and 4 deletions

View File

@ -10,7 +10,6 @@ import androidx.test.uiautomator.UiDevice
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
@ -234,13 +233,13 @@ class NavigationToolbarTest {
}
}
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1829104")
@Test
fun verifyInsecurePageSecuritySubMenuTest() {
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
navigationToolbar {
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
waitForPageToLoad()
}.openSiteSecuritySheet {
verifyQuickActionSheet(defaultWebPage.url.toString(), false)
openSecureConnectionSubMenu(false)

View File

@ -16,6 +16,7 @@ import mozilla.components.support.ktx.kotlin.tryGetHostFromUrl
import org.junit.Assert.assertTrue
import org.mozilla.fenix.R
import org.mozilla.fenix.helpers.TestAssetHelper.waitingTime
import org.mozilla.fenix.helpers.TestAssetHelper.waitingTimeShort
import org.mozilla.fenix.helpers.TestHelper.getStringResource
import org.mozilla.fenix.helpers.TestHelper.mDevice
import org.mozilla.fenix.helpers.TestHelper.packageName
@ -26,8 +27,10 @@ import org.mozilla.fenix.helpers.TestHelper.packageName
class SiteSecurityRobot {
fun verifyQuickActionSheet(url: String = "", isConnectionSecure: Boolean) = assertQuickActionSheet(url, isConnectionSecure)
fun openSecureConnectionSubMenu(isConnectionSecure: Boolean) =
quickActionSheetSecurityInfo(isConnectionSecure).clickAndWaitForNewWindow(waitingTime)
fun openSecureConnectionSubMenu(isConnectionSecure: Boolean) {
quickActionSheetSecurityInfo(isConnectionSecure).click()
mDevice.waitForWindowUpdate(packageName, waitingTimeShort)
}
fun verifySecureConnectionSubMenu(pageTitle: String = "", url: String = "", isConnectionSecure: Boolean) =
assertSecureConnectionSubMenu(pageTitle, url, isConnectionSecure)
fun clickQuickActionSheetClearSiteData() = quickActionSheetClearSiteData().click()