Bug 1816683 - Fix AC version not displayed in verifyAboutFirefoxPreview UI test

(cherry picked from commit 289b44804e7750d0dbc44fe46061e41e344e2768)
pull/600/head
oana.horvath 1 year ago committed by mergify[bot]
parent ecdc1c733e
commit c6b3ca1fea

@ -100,17 +100,13 @@ private fun assertVersionNumber() {
val packageInfo = context.packageManager.getPackageInfoCompat(context.packageName, 0)
val versionCode = PackageInfoCompat.getLongVersionCode(packageInfo).toString()
val buildNVersion = "${packageInfo.versionName} (Build #$versionCode)\n"
val componentsVersion =
"${mozilla.components.Build.version}, ${mozilla.components.Build.gitHash}"
val geckoVersion =
org.mozilla.geckoview.BuildConfig.MOZ_APP_VERSION + "-" + org.mozilla.geckoview.BuildConfig.MOZ_APP_BUILDID
val asVersion = mozilla.components.Build.applicationServicesVersion
onView(withId(R.id.about_text))
.check(matches(withText(containsString(buildNVersion))))
.check(matches(withText(containsString(componentsVersion))))
.check(matches(withText(containsString(geckoVersion))))
.check(matches(withText(containsString(asVersion))))
}

Loading…
Cancel
Save