Hi.
I’m trying to write Android UI tests on the app with Intercom integrated.
I’d like to check that Intercom main screen is opened after some actions made in our UI.
However I’ve discovered, that Intercom uses Compose, that’s why usual techniques to find views ids are not working.
Could you suggest if any semantics were used in your Compose code or how can I find any stable identifiers to check them in my tests?
Page 1 / 1
Hi Andrei Beriukhov, It’s Mat from the Support Engineering Team
You can try to add your own semantics to the Compose components in your app for testing purposes. Use the Modifier.semantics
function to attach test tags or labels to elements, which you can then reference in your UI tests.
If not please reach out to us via Messenger and we connect you with our Engineers to look into this further.
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.