Drop default item checks from tests

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-08-27 21:10:30 +05:30
parent bb80b42426
commit 2450512059
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -15,16 +15,6 @@ class MainActivityTest {
@get:Rule @get:Rule
val composeTestRule = createAndroidComposeRule<MainActivity>(disableTransitions = true) val composeTestRule = createAndroidComposeRule<MainActivity>(disableTransitions = true)
@Test
fun test_default_item() {
composeTestRule.setContent {
TodoTheme {
TodoApp()
}
}
onNodeWithText("Default item").assertIsDisplayed()
}
@Test @Test
fun test_item_addition() { fun test_item_addition() {
composeTestRule.setContent { composeTestRule.setContent {
@ -32,7 +22,6 @@ class MainActivityTest {
TodoApp() TodoApp()
} }
} }
onNodeWithText("Default item").assertIsDisplayed()
onNode(hasTestTag("fab")).performClick() onNode(hasTestTag("fab")).performClick()
onNodeWithText("Item 2").assertIsDisplayed() onNodeWithText("Item 2").assertIsDisplayed()
} }