Skip to content

Commit 894f063

Browse files
committed
Test
1 parent a1acd29 commit 894f063

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • llm/android/LlamaDemo/app/src/androidTest/java/com/example/executorchllamademo

llm/android/LlamaDemo/app/src/androidTest/java/com/example/executorchllamademo/PresetSanityTest.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,16 @@ class PresetSanityTest {
183183
composeTestRule.onNodeWithTag("config_url_field").performClick()
184184
composeTestRule.waitForIdle()
185185
composeTestRule.onNodeWithTag("config_url_field").performTextInput(DEFAULT_CONFIG_URL)
186-
composeTestRule.waitForIdle()
186+
187+
// Small delay to ensure text is entered
188+
Thread.sleep(500)
187189

188190
// Click the Load button
189191
composeTestRule.onNodeWithText("Load").performClick()
190192

191193
// Wait for config to load (models should appear)
192-
composeTestRule.waitUntil(timeoutMillis = 30000) {
194+
// Don't use waitForIdle here as the loading spinner animation keeps Compose busy
195+
composeTestRule.waitUntil(timeoutMillis = 60000) {
193196
composeTestRule.onAllNodesWithText("Stories 110M").fetchSemanticsNodes().isNotEmpty()
194197
}
195198
Log.i(TAG, "Preset config loaded successfully")

0 commit comments

Comments
 (0)