fix(test): use waitUntil and assertIsDisplayed in ChatViewModelScopeTest
This commit is contained in:
parent
97f2f929c3
commit
95a5633e5f
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
package app.hermes.mobile.feature.chat
|
||||
|
||||
import androidx.compose.ui.test.assertExists
|
||||
import androidx.compose.ui.test.assertIsDisplayed
|
||||
import androidx.compose.ui.test.junit4.createAndroidComposeRule
|
||||
import androidx.compose.ui.test.onAllNodesWithText
|
||||
import androidx.compose.ui.test.onNodeWithText
|
||||
|
|
@ -52,6 +52,6 @@ class ChatViewModelScopeTest {
|
|||
composeTestRule.onAllNodesWithText("Draft prompt before rotation", substring = true)
|
||||
.fetchSemanticsNodes().isNotEmpty()
|
||||
}
|
||||
composeTestRule.onNodeWithText("Draft prompt before rotation", substring = true).assertExists()
|
||||
composeTestRule.onNodeWithText("Draft prompt before rotation", substring = true).assertIsDisplayed()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue