File tree Expand file tree Collapse file tree
llm/android/LlamaDemo/app/src/androidTest/java/com/example/executorchllamademo Expand file tree Collapse file tree Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments