Skip to main content

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?

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