Skip to content

Commit

Permalink
Removes domain card from the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonis Lilis committed May 19, 2023
1 parent ca98665 commit b210b22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ class MySiteViewModel @Inject constructor(
}
add(Type.QUICK_LINK_RIBBON)
add(Type.JETPACK_INSTALL_FULL_PLUGIN_CARD)
add(Type.DOMAIN_REGISTRATION_CARD)
}

MySiteTabType.DASHBOARD -> mutableListOf<Type>().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2970,13 +2970,13 @@ class MySiteViewModelTest : BaseUnitTest() {
}

@Test
fun `given selected site with domain credit, when site menu cards and items, then domain reg card exists`() {
fun `given selected site with domain credit, when site menu cards and items, then domain reg card does not exist`() {
initSelectedSite()
isDomainCreditAvailable.value = DomainCreditAvailable(true)

val items = (uiModels.last().state as SiteSelected).siteMenuCardsAndItems

assertThat(items.filterIsInstance(DomainRegistrationCard::class.java)).isNotEmpty
assertThat(items.filterIsInstance(DomainRegistrationCard::class.java)).isEmpty()
}

@Test
Expand Down

0 comments on commit b210b22

Please sign in to comment.