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
John Nichol
04/05/2022, 6:13 AM
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
Luke
04/05/2022, 1:26 PM
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