Skip to content

Commit

Permalink
[#354] Fix: androidTest test case names should start with lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
luongvo committed Feb 13, 2023
1 parent e1cd73c commit 367fe6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ class HomeScreenTest {
}

@Test
fun When_entering_the_Home_screen__it_shows_UI_correctly() = initComposable {
fun when_entering_the_Home_screen__it_shows_UI_correctly() = initComposable {
onNodeWithText("Home").assertIsDisplayed()
}

@Test
fun When_loading_list_item_successfully__it_shows_the_list_item_correctly() = initComposable {
fun when_loading_list_item_successfully__it_shows_the_list_item_correctly() = initComposable {
onNodeWithText("1").assertIsDisplayed()
onNodeWithText("2").assertIsDisplayed()
onNodeWithText("3").assertIsDisplayed()
}

@Test
fun When_clicking_on_a_list_item__it_navigates_to_Second_screen() = initComposable {
fun when_clicking_on_a_list_item__it_navigates_to_Second_screen() = initComposable {
onNodeWithText("1").performClick()

assertEquals(expectedAppDestination, AppDestination.Second)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class HomeScreenTest {
}

@Test
fun When_entering_the_Home_screen__it_shows_UI_correctly() {
fun when_entering_the_Home_screen__it_shows_UI_correctly() {
composeRule.run {
onNodeWithText(activity.getString(R.string.app_name)).assertIsDisplayed()
}
Expand Down

0 comments on commit 367fe6a

Please sign in to comment.