Open jmelott opened 1 year ago
This is already the case. The green background is set by CSS so you just need to perform the same test as CSS.
The Primary button has data-version="P" on the button element.
The zoom button have class pressed only when activated.
For those icons like the Primary button or the mode buttons, can you add a simple attribute or something that could be checked to see which button of the set is activated. Checking to see if an icon is green is a horrible way to write tests as you could change the color slightly and all the automated tests would possibly break.