Joan Colmenero
02/07/2022, 8:05 AMmattinger
02/07/2022, 2:40 PMprintln(composeTestRule.onRoot().printToString())
If it’s not in that symantic tree, you’re unlikely to be able to test it. You can, however always add your own semantic properties. For instance, my app has it’s own design system that’s not Material Design. We have a “tone” property that affects the colors, and based on the “tone”, we use different colors for filled buttons, etc….
So we created a semantic property to represent the tone of the button, and we test that, rather than directly trying to test colors.