|
|
|
@ -882,6 +882,17 @@ class BrowserRobot {
|
|
|
|
|
assertTrue(button.waitForExists(waitingTime))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun verifySurveyNoThanksButton() {
|
|
|
|
|
val button = mDevice.findObject(
|
|
|
|
|
UiSelector().text(
|
|
|
|
|
getStringResource(
|
|
|
|
|
R.string.preferences_not_take_survey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
assertTrue(button.waitForExists(waitingTime))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun clickOpenLinksInAppsDismissCFRButton() =
|
|
|
|
|
itemWithResIdContainingText(
|
|
|
|
|
"$packageName:id/dismiss",
|
|
|
|
@ -900,6 +911,18 @@ class BrowserRobot {
|
|
|
|
|
button.click()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun clickNoThanksSurveyButton() {
|
|
|
|
|
val button = mDevice.findObject(
|
|
|
|
|
UiSelector().text(
|
|
|
|
|
getStringResource(
|
|
|
|
|
R.string.preferences_not_take_survey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
button.waitForExists(waitingTime)
|
|
|
|
|
button.click()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun longClickToolbar() = mDevice.findObject(By.res("$packageName:id/mozac_browser_toolbar_url_view")).click(LONG_CLICK_DURATION)
|
|
|
|
|
|
|
|
|
|
fun verifyDownloadPromptIsDismissed() =
|
|
|
|
@ -1235,6 +1258,14 @@ class BrowserRobot {
|
|
|
|
|
BrowserRobot().interact()
|
|
|
|
|
return Transition()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun clickNoThanksSurveyButton(interact: BrowserRobot.() -> Unit): BrowserRobot.Transition {
|
|
|
|
|
surveyNoThanksButton.waitForExists(waitingTime)
|
|
|
|
|
surveyNoThanksButton.click()
|
|
|
|
|
|
|
|
|
|
BrowserRobot().interact()
|
|
|
|
|
return Transition()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1387,3 +1418,6 @@ private val contextMenuOpenInExternalApp =
|
|
|
|
|
|
|
|
|
|
private val surveyButton =
|
|
|
|
|
itemContainingText(getStringResource(R.string.preferences_take_survey))
|
|
|
|
|
|
|
|
|
|
private val surveyNoThanksButton =
|
|
|
|
|
itemContainingText(getStringResource(R.string.preferences_not_take_survey))
|
|
|
|
|