You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve Android instrumented test timing issue in chatapp-java
Fix flaky testDialogCancellation test by properly handling keyboard state
and UI transitions during dialog interactions.
Root cause: The test was failing because the soft keyboard remained open
after typing, causing view hierarchy transitions that interfered with
Espresso's ability to find the layoutEmptyState view.
Changes:
- Close soft keyboard explicitly before clicking Cancel button
- Add brief delay (100ms) to allow UI transitions to complete
- Add repository verification to ensure no agents were added
- Improve test robustness with initial state verification
Result: All Android instrumented tests now pass (30/30 = 100% success rate)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: kotlin-sdk/examples/chatapp-java/app/src/androidTest/java/com/agui/chatapp/java/ui/SettingsActivityTest.java
0 commit comments