From 35fa445165f303da7932452fcfd37810c8400ba0 Mon Sep 17 00:00:00 2001 From: liuche Date: Fri, 12 Jun 2020 15:01:38 -0700 Subject: [PATCH] Issue #11112 - Update empty collections string + tests. (#11538) --- .../org/mozilla/fenix/ui/robots/HomeScreenRobot.kt | 4 ++-- .../fenix/home/sessioncontrol/SessionControlView.kt | 4 ++-- app/src/main/res/values/strings.xml | 12 ++++-------- 3 files changed, 8 insertions(+), 12 deletions(-) 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 88b44a496..7299729ff 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 @@ -514,13 +514,13 @@ private fun assertCollectionsHeader() = .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) private fun assertNoCollectionsHeader() = - onView(allOf(withText("No collections"))) + onView(allOf(withText("Collect the things that matter to you"))) .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) private fun assertNoCollectionsText() = onView( allOf( - withText("Collect the things that matter to you. To start, save open tabs to a new collection.") + withText("Group together similar searches, sites, and tabs for quick access later.") ) ) .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) diff --git a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt index f9e4f8674..809b1ec7e 100644 --- a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt +++ b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt @@ -21,8 +21,8 @@ import org.mozilla.fenix.home.OnboardingState import org.mozilla.fenix.components.tips.Tip val noCollectionMessage = AdapterItem.NoContentMessage( - R.string.no_collections_header, - R.string.collections_description + R.string.no_collections_header1, + R.string.no_collections_description1 ) // This method got a little complex with the addition of the tab tray feature flag diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e72f29b83..9b72708d4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -15,8 +15,6 @@ Disable private browsing Search or enter address - - No open tabs Your open tabs will be shown here. @@ -477,7 +475,7 @@ Share tabs - Save to collection + Save tabs to collection Tab menu @@ -686,16 +684,14 @@ Off - - Collect the things that matter to you. To start, save open tabs to a new collection. Collections Collection menu - No collections - - Your collections will be shown here. + Collect the things that matter to you + + Group together similar searches, sites, and tabs for quick access later. Select Tabs