From c6ca28751b2510852f745b65386d9e00d452b44e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mlynari=C4=8D?= Date: Tue, 2 Apr 2024 10:10:58 +0200 Subject: [PATCH 1/3] Fix AppTest due to missing dependency --- Jetsnack/app/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/Jetsnack/app/build.gradle.kts b/Jetsnack/app/build.gradle.kts index 06b1280815..aa1910385a 100644 --- a/Jetsnack/app/build.gradle.kts +++ b/Jetsnack/app/build.gradle.kts @@ -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) } From 8fa3515f81aadd95b5ce9423a1c6f382ae8c442e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mlynari=C4=8D?= Date: Tue, 2 Apr 2024 10:14:17 +0200 Subject: [PATCH 2/3] Fix setting content --- .../src/androidTest/java/com/example/jetsnack/AppTest.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Jetsnack/app/src/androidTest/java/com/example/jetsnack/AppTest.kt b/Jetsnack/app/src/androidTest/java/com/example/jetsnack/AppTest.kt index 0a869527ef..978f05c81d 100644 --- a/Jetsnack/app/src/androidTest/java/com/example/jetsnack/AppTest.kt +++ b/Jetsnack/app/src/androidTest/java/com/example/jetsnack/AppTest.kt @@ -31,13 +31,6 @@ class AppTest { @get:Rule val composeTestRule = createAndroidComposeRule() - @Before - fun setUp() { - composeTestRule.setContent { - JetsnackApp() - } - } - @Test fun app_launches() { // Check app launches at the correct destination From 7b09866749ca440fb3637f5a4b3eedf2fc552d05 Mon Sep 17 00:00:00 2001 From: mlykotom Date: Tue, 2 Apr 2024 08:16:36 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A4=96=20Apply=20Spotless?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/src/androidTest/java/com/example/jetsnack/AppTest.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Jetsnack/app/src/androidTest/java/com/example/jetsnack/AppTest.kt b/Jetsnack/app/src/androidTest/java/com/example/jetsnack/AppTest.kt index 978f05c81d..646a3d6a4f 100644 --- a/Jetsnack/app/src/androidTest/java/com/example/jetsnack/AppTest.kt +++ b/Jetsnack/app/src/androidTest/java/com/example/jetsnack/AppTest.kt @@ -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