Skip to content

Instantly share code, notes, and snippets.

@AaronMT
Created October 21, 2019 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronMT/de3ae57f27693e73a5a1fa95bdd1834d to your computer and use it in GitHub Desktop.
Save AaronMT/de3ae57f27693e73a5a1fa95bdd1834d to your computer and use it in GitHub Desktop.
fun verifyHelpUrl() {
val mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
val redirectUrl = "https://support.mozilla.org/"
assertNotNull(mDevice.wait(Until.findObject(By.res("R.id.mozac_browser_toolbar_url_view")), TestAssetHelper.waitingTime))
onView(withId(R.id.mozac_browser_toolbar_url_view))
.check(matches(withText(containsString(redirectUrl))))
}
fun verifyWhatsNewURL() {
val mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
val redirectUrl = "https://support.mozilla.org/"
assertNotNull(mDevice.wait(Until.findObject(By.res("R.id.mozac_browser_toolbar_url_view")), TestAssetHelper.waitingTime))
onView(withId(R.id.mozac_browser_toolbar_url_view))
.check(matches(withText(containsString(redirectUrl))))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment