-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SemanticsNodeInteraction.captureToImage() #589
Implement SemanticsNodeInteraction.captureToImage() #589
Conversation
The trick with |
Just a note: while adding and completing the API of the ComposeTestRule is important to do, it's not supported in common tests (because of JUnit). |
Hmm, I see. So I guess I should move |
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/SkikoTestOwner.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui-test-junit4/src/desktopTest/kotlin/androidx/compose/ui/test/BasicTestTest.kt
Show resolved
Hide resolved
1d3e287
to
388c66c
Compare
4eee669
to
c6dec8b
Compare
388c66c
to
3d8c570
Compare
c6dec8b
to
8cd56f9
Compare
8cd56f9
to
482bda5
Compare
Proposed Changes
Implement
SemanticsNodeInteraction.captureToImage()
to allow it to be used directly with aTestRule
, rather than only in the context of aSkikoComposeUiTest
.Testing
Test: Added a unit test