|
|
|
@ -152,6 +152,8 @@ class BrowserRobot {
|
|
|
|
|
|
|
|
|
|
fun verifyNavURLBar() = assertNavURLBar()
|
|
|
|
|
|
|
|
|
|
fun verifyNavURLBarHidden() = assertNavURLBarHidden()
|
|
|
|
|
|
|
|
|
|
fun verifySecureConnectionLockIcon() = assertSecureConnectionLockIcon()
|
|
|
|
|
|
|
|
|
|
fun verifyEnhancedTrackingProtectionSwitch() = assertEnhancedTrackingProtectionSwitch()
|
|
|
|
@ -192,6 +194,13 @@ class BrowserRobot {
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun verifyNotificationDotOnMainMenu() {
|
|
|
|
|
assertTrue(
|
|
|
|
|
mDevice.findObject(UiSelector().resourceId("$packageName:id/notification_dot"))
|
|
|
|
|
.waitForExists(waitingTime)
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun dismissContentContextMenu(containsURL: Uri) {
|
|
|
|
|
onView(withText(containsURL.toString()))
|
|
|
|
|
.inRoot(isDialog())
|
|
|
|
@ -471,11 +480,14 @@ fun dismissTrackingOnboarding() {
|
|
|
|
|
dismissOnboardingButton().click()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun navURLBar() = onView(withId(R.id.mozac_browser_toolbar_url_view))
|
|
|
|
|
fun navURLBar() = onView(withId(R.id.toolbar))
|
|
|
|
|
|
|
|
|
|
private fun assertNavURLBar() = navURLBar()
|
|
|
|
|
.check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
|
|
|
|
|
|
|
|
|
|
private fun assertNavURLBarHidden() = navURLBar()
|
|
|
|
|
.check(matches(not(isDisplayed())))
|
|
|
|
|
|
|
|
|
|
fun enhancedTrackingProtectionIndicator() =
|
|
|
|
|
onView(withId(R.id.mozac_browser_toolbar_tracking_protection_indicator))
|
|
|
|
|
|
|
|
|
|