We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
assertExists()
1 parent 5a36e53 commit f040e72Copy full SHA for f040e72
app/src/androidTest/java/com/pcapplusplus/toyvpn/StatsScreenTest.kt
@@ -230,9 +230,11 @@ class StatsScreenTest {
230
231
Log.e("StatsScreenTest", composeTestRule.onNodeWithText("Disconnecting...").printToString())
232
233
- composeTestRule.waitUntil(timeoutMillis = 10000) {
+ composeTestRule.waitUntil(timeoutMillis = 20000) {
234
try {
235
- composeTestRule.onNodeWithText("Disconnecting...").assertIsDisplayed()
+ val node = composeTestRule.onNodeWithText("Disconnecting...")
236
+ node.assertExists()
237
+ node.assertIsDisplayed()
238
true
239
} catch (ex: AssertionError) {
240
false
0 commit comments