[fenix] No issue: quick fix for externalLinkPWATest

pull/600/head
AndiAJ 3 years ago committed by mergify[bot]
parent 7dcf99911f
commit 3b05cde361

@ -37,7 +37,7 @@ class PwaTest {
@SmokeTest
@Test
fun externalLinkPWATest() {
val customTabTitle = "Mozilla - Google Search"
val customTabTitle = "Google"
navigationToolbar {
}.enterURLAndEnterToBrowser(externalLinksPWAPage.toUri()) {

@ -64,7 +64,14 @@ class CustomTabRobot {
.textContains(title)
)
)
assertTrue(customTabToolbarTitle().text.equals(title))
assertTrue(
mDevice.findObject(
UiSelector()
.resourceId("$packageName:id/mozac_browser_toolbar_title_view")
.textContains(title)
).waitForExists(waitingTime)
)
}
class Transition {
@ -105,6 +112,3 @@ private fun forwardButton() = mDevice.findObject(UiSelector().description("Forwa
private fun backButton() = mDevice.findObject(UiSelector().description("Back"))
private fun closeButton() = onView(withContentDescription("Return to previous app"))
private fun customTabToolbarTitle() =
mDevice.findObject(UiSelector().resourceId("$packageName:id/mozac_browser_toolbar_title_view"))

Loading…
Cancel
Save