MD-Anderson-Bioinformatics / NG-CHM

A dynamic, graphical environment for exploration of clustered or non-clustered heat map data in a web browser.
https://bioinformatics.mdanderson.org/main/NG-CHM-V2:Overview
GNU General Public License v2.0
10 stars 9 forks source link

Enhancement requested to latest changes to make automated testing easier. #414

Open jmelott opened 1 year ago

jmelott commented 1 year ago

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.

bmbroom commented 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.