File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
app/src/androidTest/java/com/pcapplusplus/toyvpn Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 6565 with :
6666 api-level : ${{ matrix.api-level }}
6767 arch : x86_64
68- script : ./gradlew -is connectedCheck
68+ script : |
69+ adb logcat -c
70+ adb logcat &
71+ gradle -is connectedCheck
72+
6973
7074 build-server :
7175 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11package com.pcapplusplus.toyvpn
22
3+ import android.util.Log
34import androidx.compose.material3.Text
45import androidx.compose.ui.test.assertIsDisplayed
56import androidx.compose.ui.test.assertIsEnabled
@@ -20,7 +21,6 @@ import com.pcapplusplus.toyvpn.ui.theme.ToyVpnPcapPlusPlusTheme
2021import io.mockk.every
2122import io.mockk.mockk
2223import io.mockk.verify
23- import org.junit.Assert.assertTrue
2424import org.junit.Before
2525import org.junit.Rule
2626import org.junit.Test
@@ -228,13 +228,7 @@ class StatsScreenTest {
228228 fun testVpnDisconnecting () {
229229 renderScreen(vpnConnectionState = VpnConnectionState .DISCONNECTING )
230230
231- assertTrue(
232- " BLA BLA: ${composeTestRule.onNodeWithText(
233- " Disconnecting..." ,
234- useUnmergedTree = true ,
235- ).printToString()} some text after to see if it's all" ,
236- " bla" == composeTestRule.onNodeWithText(" Disconnecting..." , useUnmergedTree = true ).printToString(),
237- )
231+ Log .e(" StatsScreenTest" , composeTestRule.onNodeWithText(" Disconnecting..." ).printToString())
238232
239233 composeTestRule.waitUntil(timeoutMillis = 10000 ) {
240234 try {
You can’t perform that action at this time.
0 commit comments