Skip to content

Commit

Permalink
Fix AppTest due to missing dependency (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlykotom committed Apr 2, 2024
2 parents 050a1b6 + 7b09866 commit 4242931
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions Jetsnack/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,5 @@ dependencies {
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.kotlinx.coroutines.test)
androidTestImplementation(libs.androidx.compose.ui.test)
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import com.example.jetsnack.ui.JetsnackApp
import com.example.jetsnack.ui.MainActivity
import org.junit.Before
import org.junit.Rule
import org.junit.Test

Expand All @@ -31,13 +29,6 @@ class AppTest {
@get:Rule
val composeTestRule = createAndroidComposeRule<MainActivity>()

@Before
fun setUp() {
composeTestRule.setContent {
JetsnackApp()
}
}

@Test
fun app_launches() {
// Check app launches at the correct destination
Expand Down

0 comments on commit 4242931

Please sign in to comment.