Skip to content

Commit

Permalink
For mozilla-mobile#17799: Add extensions submenu item.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarare committed Mar 19, 2021
1 parent 7979496 commit ca4b1ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,7 @@ private fun assertSettingsButton() = settingsButton()
.check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
.check(matches(isCompletelyDisplayed()))

private val addOnsText = if (FeatureFlags.toolbarMenuFeature) "Extensions" else "Add-ons"
private fun addOnsButton() = onView(allOf(withText(addOnsText)))
private fun addOnsButton() = onView(allOf(withText( "Add-ons")))
private fun assertAddOnsButton() {
onView(withId(R.id.mozac_browser_menu_menuView)).perform(swipeDown())
addOnsButton().check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,9 @@ class DefaultToolbarMenu(
onItemTapped.invoke(ToolbarMenu.Item.Downloads)
}

val extensionsItem = BrowserMenuImageText(
context.getString(R.string.browser_menu_extensions),
R.drawable.ic_addons_extensions,
primaryTextColor()
) {
onItemTapped.invoke(ToolbarMenu.Item.AddonsManager)
}
val extensionsItem = WebExtensionPlaceholderMenuItem(
id = WebExtensionPlaceholderMenuItem.MAIN_EXTENSIONS_MENU_ID
)

val syncedTabs = BrowserMenuImageText(
label = context.getString(R.string.synced_tabs),
Expand Down

0 comments on commit ca4b1ca

Please sign in to comment.