Skip to content

Commit

Permalink
[#74] Rename Test Cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Wadeewee committed Feb 17, 2023
1 parent ccdf864 commit b905c32
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class HomeScreenUITest {
}

@Test
fun when_enter_to_HomeScreen_it_render_the_PortfolioCard_properly() {
fun hen_entering_HomeScreen__it_renders_the_PortfolioCard_properly() {
initViewModel()

with(composeAndroidTestRule) {
Expand All @@ -79,7 +79,7 @@ class HomeScreenUITest {
}

@Test
fun when_loading_MyCoins_it_renders_the_LoadingProgress_properly() {
fun when_loading_MyCoins__it_renders_the_LoadingProgress_properly() {
every { mockGetMyCoinsUseCase.execute(any()) } returns flow { delay(500) }

initViewModel()
Expand All @@ -88,7 +88,7 @@ class HomeScreenUITest {
}

@Test
fun when_loading_TrendingCoins_it_renders_the_LoadingProgress_properly() {
fun when_loading_TrendingCoins__it_renders_the_LoadingProgress_properly() {
every { mockGetTrendingCoinsUseCase.execute(any()) } returns flow { delay(500) }

initViewModel()
Expand All @@ -97,7 +97,7 @@ class HomeScreenUITest {
}

@Test
fun when_enter_to_HomeScreen_and_load_MyCoins_successfully_it_render_the_UI_properly() {
fun when_entering_HomeScreen_and_loading_MyCoins_successfully__it_renders_the_UI_properly() {
initViewModel()

with(composeAndroidTestRule) {
Expand All @@ -121,7 +121,7 @@ class HomeScreenUITest {
}

@Test
fun when_enter_to_HomeScreen_and_load_TrendingCoins_successfully_it_render_the_UI_properly() {
fun when_entering_to_the_HomeScreen_and_loading_TrendingCoins_successfully__it_renders_the_UI_properly() {
initViewModel()

with(composeAndroidTestRule) {
Expand All @@ -145,7 +145,7 @@ class HomeScreenUITest {
}

@Test
fun when_clicked_on_MyCoin_item_it_navigates_to_DetailScreen() {
fun when_clicked_on_MyCoin_item__it_navigates_to_DetailScreen() {
initViewModel()

composeAndroidTestRule.onAllNodesWithTag(testTag = TestTagCoinItem).onFirst().performClick()
Expand All @@ -154,7 +154,7 @@ class HomeScreenUITest {
}

@Test
fun when_clicked_on_TrendingCoin_item_it_navigates_to_DetailScreen() {
fun when_clicked_on_TrendingCoin_item__it_navigates_to_DetailScreen() {
initViewModel()

composeAndroidTestRule.onAllNodesWithTag(
Expand All @@ -165,7 +165,7 @@ class HomeScreenUITest {
}

@Test
fun when_enter_to_HomeScreen_and_load_MyCoins_failed_it_shows_the_Toast_properly() {
fun when_entering_to_the_HomeScreen_and_loading_MyCoins_failed__it_shows_the_error_message() {
every { mockGetMyCoinsUseCase.execute(any()) } returns flow {
throw Throwable(errorGeneric)
}
Expand All @@ -179,7 +179,7 @@ class HomeScreenUITest {
}

@Test
fun when_enter_to_HomeScreen_and_load_TrendingCoins_failed_it_shows_the_Toast_properly() {
fun when_entering_to_the_HomeScreen_and_loading_TrendingCoins_failed__it_shows_the_error_message() {
every { mockGetTrendingCoinsUseCase.execute(any()) } returns flow {
throw Throwable(errorGeneric)
}
Expand Down

0 comments on commit b905c32

Please sign in to comment.