Bug 1858882 - Update "Learn More" link in private browsing description

(cherry picked from commit 6c24da8bbb019dba0d0b01d5369dd24a52f728a7)
fenix/120.0
Harrison Oglesby 7 months ago committed by mergify[bot]
parent d61b257a5f
commit 479540ae66

@ -42,8 +42,11 @@ class DefaultPrivateBrowsingController(
) : PrivateBrowsingController {
override fun handleLearnMoreClicked() {
val learnMoreURL = SupportUtils.getGenericSumoURLForTopic(SupportUtils.SumoTopic.PRIVATE_BROWSING_MYTHS) +
"?as=u&utm_source=inproduct"
activity.openToBrowserAndLoad(
searchTermOrURL = SupportUtils.getGenericSumoURLForTopic(SupportUtils.SumoTopic.PRIVATE_BROWSING_MYTHS),
searchTermOrURL = learnMoreURL,
newTab = true,
from = BrowserDirection.FromHome,
)

@ -28,7 +28,6 @@ import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.settings
import org.mozilla.fenix.home.Mode
import org.mozilla.fenix.home.privatebrowsing.controller.DefaultPrivateBrowsingController
import org.mozilla.fenix.settings.SupportUtils
import org.mozilla.fenix.utils.Settings
class DefaultPrivateBrowsingControllerTest {
@ -61,12 +60,13 @@ class DefaultPrivateBrowsingControllerTest {
@Test
fun `WHEN private browsing learn more link is clicked THEN open support page in browser`() {
val learnMoreURL = "https://support.mozilla.org/en-US/kb/common-myths-about-private-browsing?as=u&utm_source=inproduct"
controller.handleLearnMoreClicked()
verify {
activity.openToBrowserAndLoad(
searchTermOrURL = SupportUtils.getGenericSumoURLForTopic
(SupportUtils.SumoTopic.PRIVATE_BROWSING_MYTHS),
searchTermOrURL = learnMoreURL,
newTab = true,
from = BrowserDirection.FromHome,
)

Loading…
Cancel
Save