fix(ci): add androidTest room schemas asset dir and waitForIdle in ChatViewModelScopeTest

This commit is contained in:
Ochenstarik 2026-08-25 09:59:14 +07:00
parent 4c9d53e5a5
commit 64b06900b2
2 changed files with 9 additions and 1 deletions

View file

@ -27,6 +27,12 @@ android {
}
}
sourceSets {
getByName("androidTest") {
assets.srcDir("$projectDir/schemas")
}
}
signingConfigs {
create("release") {
val keystorePropertiesFile = rootProject.file("keystore.properties")

View file

@ -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()
}
}