From a0d91893213a7b23d52cb5b2dbe500d863a6304d Mon Sep 17 00:00:00 2001 From: mcarare Date: Fri, 5 Jun 2020 10:02:21 +0300 Subject: [PATCH] For #11229: Update onboarding ETP copy. --- .../java/org/mozilla/fenix/ui/HomeScreenTest.kt | 8 ++++---- .../org/mozilla/fenix/ui/robots/HomeScreenRobot.kt | 12 ++++++------ .../OnboardingTrackingProtectionViewHolder.kt | 10 ++++------ .../res/layout/onboarding_tracking_protection.xml | 10 +++++----- app/src/main/res/values/strings.xml | 10 +++++----- 5 files changed, 24 insertions(+), 26 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt index 9c3239593..aa88bd4dd 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt @@ -76,11 +76,11 @@ class HomeScreenTest { verifyWhatsNewHeader() verifyWhatsNewLink() - // Protect yourself - scrollToElementByText("Protect yourself") - verifyProtectYourselfHeader() + // Automatic privacy + scrollToElementByText("Automatic privacy") + verifyAutomaticPrivacyfHeader() verifyTrackingProtectionToggle() - verifyProtectYourselfText() + verifyAutomaticPrivacyText() /* Check disable due to Firebase failures on Pixel 2 API 28 // Choose your theme diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt index 93cd9ac37..88b44a496 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt @@ -78,9 +78,9 @@ class HomeScreenRobot { fun verifyDarkThemeDescription() = assertDarkThemeDescription() fun verifyAutomaticThemeToggle() = assertAutomaticThemeToggle() fun verifyAutomaticThemeDescription() = assertAutomaticThemeDescription() - fun verifyProtectYourselfHeader() = assertProtectYourselfHeader() + fun verifyAutomaticPrivacyfHeader() = assertAutomaticPrivacyHeader() fun verifyTrackingProtectionToggle() = assertTrackingProtectionToggle() - fun verifyProtectYourselfText() = assertProtectYourselfText() + fun verifyAutomaticPrivacyText() = assertAutomaticPrivacyText() // What's new elements fun verifyWhatsNewHeader() = assertWhatsNewHeather() @@ -593,8 +593,8 @@ private fun assertAutomaticThemeDescription() = onView(allOf(withText("Automatic"))) .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) -private fun assertProtectYourselfHeader() = - onView(allOf(withText("Protect yourself"))) +private fun assertAutomaticPrivacyHeader() = + onView(allOf(withText("Automatic privacy"))) .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) private fun assertTrackingProtectionToggle() = onView( @@ -602,11 +602,11 @@ private fun assertTrackingProtectionToggle() = onView( ) .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) -private fun assertProtectYourselfText() { +private fun assertAutomaticPrivacyText() { onView( allOf( withText( - "Firefox Preview helps stop websites from tracking you online." + "Privacy and security settings block trackers, malware, and companies that follow you." ) ) ) diff --git a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/onboarding/OnboardingTrackingProtectionViewHolder.kt b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/onboarding/OnboardingTrackingProtectionViewHolder.kt index 11f98a3a3..39bed6aaa 100644 --- a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/onboarding/OnboardingTrackingProtectionViewHolder.kt +++ b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/onboarding/OnboardingTrackingProtectionViewHolder.kt @@ -26,10 +26,8 @@ class OnboardingTrackingProtectionViewHolder(view: View) : RecyclerView.ViewHold standardTrackingProtection = view.tracking_protection_standard_option strictTrackingProtection = view.tracking_protection_strict_default - val appName = view.context.getString(R.string.app_name) view.description_text.text = view.context.getString( - R.string.onboarding_tracking_protection_description1, - appName + R.string.onboarding_tracking_protection_description_2 ) trackingProtectionToggle.apply { @@ -65,10 +63,10 @@ class OnboardingTrackingProtectionViewHolder(view: View) : RecyclerView.ViewHold standardTrackingProtection.performClick() } val standardTitle = view.context.getString( - R.string.onboarding_tracking_protection_standard_button + R.string.onboarding_tracking_protection_standard_button_2 ) val standardSummary = view.context.getString( - R.string.onboarding_tracking_protection_standard_button_description + R.string.onboarding_tracking_protection_standard_button_description_2 ) contentDescription = "$standardTitle. $standardSummary" } @@ -84,7 +82,7 @@ class OnboardingTrackingProtectionViewHolder(view: View) : RecyclerView.ViewHold val strictTitle = view.context.getString(R.string.onboarding_tracking_protection_strict_button) val strictSummary = - view.context.getString(R.string.onboarding_tracking_protection_strict_button_description) + view.context.getString(R.string.onboarding_tracking_protection_strict_button_description_2) contentDescription = "$strictTitle. $strictSummary" } } diff --git a/app/src/main/res/layout/onboarding_tracking_protection.xml b/app/src/main/res/layout/onboarding_tracking_protection.xml index 5f96d4fe8..edb4e771b 100644 --- a/app/src/main/res/layout/onboarding_tracking_protection.xml +++ b/app/src/main/res/layout/onboarding_tracking_protection.xml @@ -16,7 +16,7 @@ android:drawablePadding="12dp" android:gravity="center_vertical" android:lines="1" - android:text="@string/onboarding_tracking_protection_header" + android:text="@string/onboarding_tracking_protection_header_2" android:textAppearance="@style/HeaderTextStyle" app:layout_constraintEnd_toStartOf="@id/tracking_protection_toggle" app:layout_constraintStart_toStartOf="parent" @@ -43,7 +43,7 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/header_text" - tools:text="@string/onboarding_tracking_protection_description1" /> + tools:text="@string/onboarding_tracking_protection_description_2" /> Failed to sign-in - Protect yourself + Automatic privacy - %s helps stop websites from tracking you online. + Privacy and security settings block trackers, malware, and companies that follow you. - Standard + Standard (default) - Blocks fewer trackers but allows pages to load normally + Blocks fewer trackers. Pages will load normally. Strict (recommended) Strict - Blocks more trackers for better protection and performance, but may cause some sites to not work properly + Blocks more trackers, ads, and popups. Pages load faster, but some functionality might not work.