https://kotlinlang.org logo
Join Slack
Powered by
Good morning, I am trying to trigger swipe action ...
# compose-android
k

Kartik

03/17/2024, 4:24 PM
Good morning, I am trying to trigger swipe action in my tests using
SwipeToDismissBox
but they are not getting triggered. I am trying to figure out why is that. I would appreciate any help in this regard My set is up as follows Github branch: https://github.com/manoflogan/ComposeAuthentication/blob/email/email/ 1. Composable - https://github.com/manoflogan/ComposeAuthentication/blob/email/email/src/main/java/com/manoflogan/email/composables/EmailContentList.kt 2. Composable test - https://github.com/manoflogan/ComposeAuthentication/blob/email/email/src/test/java/com/manoflogan/email/composables/EmailContentListTest.kt#L88-L108. 3. Callback function that I want to invoke https://github.com/manoflogan/ComposeAuthentication/blob/email/email/src/main/java/com/manoflogan/email/composables/EmailContentList.kt#L77-L79 4. The line which fails https://github.com/manoflogan/ComposeAuthentication/blob/email/email/src/test/java/com/manoflogan/email/composables/EmailContentListTest.kt#L93-L95 I have tried to write a test as follows https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:wear/compose/compose-foundation/src/androidTest/kotlin/androidx/wear/compose/foundation/BasicSwipeToDismissBoxTest.kt but I could not find a non wear equivalent. Any suggestions would be gratefully appreciated.
12 Views
Open in Slack
PreviousNext
Powered by