Repository navigation
test: use Espresso 3.7.0 for instrumented tests - #15
Merged
Merged
Conversation
Compose ui-test pulls in Espresso 3.5.0, which calls the removed InputManager.getInstance() and fails every UI test on current Android 16+ builds. Pin espresso-core 3.7.0 in the version catalog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Id: agent-a7ce0220-8c4d-43e2-823c-8410348e3a2d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Compose ui-test pulls in Espresso 3.5.0. On current Android 16+ builds it calls the removed
InputManager.getInstance(). Every UI test then fails at startup withNoSuchMethodException.This PR pins
espresso-core3.7.0 through the version catalog. App code does not change.Test plan
androidx.test.espresso:espresso-core:3.7.0fordebugAndroidTestRuntimeClasspath../gradlew build ktlintCheck detekt testpasses (JDK 21).connectedDebugAndroidTeston a Pixel 9 Pro XL (Android 16,CP1A.260405.005): 163/163 passed. Before this change: 160/162 failed.🤖 Generated with Claude Code