During UI tests, is there a way to make assertions...
# compose
l
During UI tests, is there a way to make assertions about the background color of a node? Quick Google search tends to point towards the negative but maybe someone in here has found a solution?
j
Not sure if it helps but we have a couple of approaches we use to look at the bacground color of composables that you can find here. Take a look at
verifySlotColors
particularly the
captureToImage
l
Thanks! It's still looks like a temporary implementation though... Until a formal way is introduced, I went for a custom semantic to asserts that the node was composed with the proper color