|
|
@ -27,7 +27,6 @@ import org.mozilla.fenix.components.appstate.AppState
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
import org.mozilla.fenix.home.privatebrowsing.controller.DefaultPrivateBrowsingController
|
|
|
|
import org.mozilla.fenix.home.privatebrowsing.controller.DefaultPrivateBrowsingController
|
|
|
|
import org.mozilla.fenix.settings.SupportUtils
|
|
|
|
|
|
|
|
import org.mozilla.fenix.utils.Settings
|
|
|
|
import org.mozilla.fenix.utils.Settings
|
|
|
|
|
|
|
|
|
|
|
|
class DefaultPrivateBrowsingControllerTest {
|
|
|
|
class DefaultPrivateBrowsingControllerTest {
|
|
|
@ -60,12 +59,13 @@ class DefaultPrivateBrowsingControllerTest {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun `WHEN private browsing learn more link is clicked THEN open support page in browser`() {
|
|
|
|
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()
|
|
|
|
controller.handleLearnMoreClicked()
|
|
|
|
|
|
|
|
|
|
|
|
verify {
|
|
|
|
verify {
|
|
|
|
activity.openToBrowserAndLoad(
|
|
|
|
activity.openToBrowserAndLoad(
|
|
|
|
searchTermOrURL = SupportUtils.getGenericSumoURLForTopic
|
|
|
|
searchTermOrURL = learnMoreURL,
|
|
|
|
(SupportUtils.SumoTopic.PRIVATE_BROWSING_MYTHS),
|
|
|
|
|
|
|
|
newTab = true,
|
|
|
|
newTab = true,
|
|
|
|
from = BrowserDirection.FromHome,
|
|
|
|
from = BrowserDirection.FromHome,
|
|
|
|
)
|
|
|
|
)
|
|
|
|