fix(ci): add androidTest room schemas asset dir and waitForIdle in ChatViewModelScopeTest
This commit is contained in:
parent
4c9d53e5a5
commit
64b06900b2
2 changed files with 9 additions and 1 deletions
|
|
@ -27,6 +27,12 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
getByName("androidTest") {
|
||||
assets.srcDir("$projectDir/schemas")
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
val keystorePropertiesFile = rootProject.file("keystore.properties")
|
||||
|
|
|
|||
|
|
@ -29,8 +29,10 @@ class ChatViewModelScopeTest {
|
|||
composeTestRule.onNodeWithText("Message Hermes…", ignoreCase = true)
|
||||
.performTextInput("Draft prompt before rotation")
|
||||
|
||||
composeTestRule.waitForIdle()
|
||||
composeTestRule.activityRule.scenario.recreate()
|
||||
composeTestRule.waitForIdle()
|
||||
|
||||
composeTestRule.onNodeWithText("Draft prompt before rotation").assertIsDisplayed()
|
||||
composeTestRule.onNodeWithText("Draft prompt before rotation", substring = true).assertIsDisplayed()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue