[fenix] For https://github.com/mozilla-mobile/fenix/issues/23558 - Update menu copy for What's new and Customize homepage

pull/600/head
Gabriel Luong 3 years ago committed by mergify[bot]
parent 4af7d6f3db
commit 518eac14cd

@ -188,7 +188,7 @@ class ThreeDotMenuMainRobot {
mDevice.wait( mDevice.wait(
Until Until
.findObject( .findObject(
By.textContains("$packageName:id/browser_menu_customize_home") By.textContains("$packageName:id/browser_menu_customize_home_1")
), ),
waitingTime waitingTime
) )
@ -276,7 +276,7 @@ class ThreeDotMenuMainRobot {
} }
fun openWhatsNew(interact: BrowserRobot.() -> Unit): BrowserRobot.Transition { fun openWhatsNew(interact: BrowserRobot.() -> Unit): BrowserRobot.Transition {
mDevice.waitNotNull(Until.findObject(By.text("Whats New")), waitingTime) mDevice.waitNotNull(Until.findObject(By.text("Whats new")), waitingTime)
whatsNewButton().click() whatsNewButton().click()
BrowserRobot().interact() BrowserRobot().interact()
@ -379,7 +379,7 @@ private fun customizeHomeButton() =
onView( onView(
allOf( allOf(
withId(R.id.text), withId(R.id.text),
withText(R.string.browser_menu_customize_home) withText(R.string.browser_menu_customize_home_1)
) )
) )
@ -455,7 +455,7 @@ private fun assertFindInPageButton() = findInPageButton()
private fun whatsNewButton() = onView( private fun whatsNewButton() = onView(
allOf( allOf(
withText("Whats New"), withText("Whats new"),
withEffectiveVisibility(Visibility.VISIBLE) withEffectiveVisibility(Visibility.VISIBLE)
) )
) )

@ -166,7 +166,7 @@ class HomeMenu(
} }
val customizeHomeItem = BrowserMenuImageText( val customizeHomeItem = BrowserMenuImageText(
context.getString(R.string.browser_menu_customize_home), context.getString(R.string.browser_menu_customize_home_1),
R.drawable.ic_customize, R.drawable.ic_customize,
primaryTextColor primaryTextColor
) { ) {

@ -179,7 +179,7 @@
<!-- Browser menu button that sends a user to help articles --> <!-- Browser menu button that sends a user to help articles -->
<string name="browser_menu_help">Help</string> <string name="browser_menu_help">Help</string>
<!-- Browser menu button that sends a to a the what's new article --> <!-- Browser menu button that sends a to a the what's new article -->
<string name="browser_menu_whats_new">Whats New</string> <string name="browser_menu_whats_new">Whats new</string>
<!-- Browser menu button that opens the settings menu --> <!-- Browser menu button that opens the settings menu -->
<string name="browser_menu_settings">Settings</string> <string name="browser_menu_settings">Settings</string>
<!-- Browser menu button that opens a user's library --> <!-- Browser menu button that opens a user's library -->
@ -228,7 +228,7 @@
<!-- Browser menu label for editing a bookmark --> <!-- Browser menu label for editing a bookmark -->
<string name="browser_menu_edit">Edit</string> <string name="browser_menu_edit">Edit</string>
<!-- Browser menu button that opens the Customize menu --> <!-- Browser menu button that opens the Customize menu -->
<string name="browser_menu_customize_home">Customize home</string> <string name="browser_menu_customize_home" moz:removedIn="98" tools:ignore="UnusedResources">Customize home</string>
<!-- Button shown on the home page that opens the Customize home settings --> <!-- Button shown on the home page that opens the Customize home settings -->
<string name="browser_menu_customize_home_1">Customize homepage</string> <string name="browser_menu_customize_home_1">Customize homepage</string>
<!-- Browser Toolbar --> <!-- Browser Toolbar -->

Loading…
Cancel
Save