Interactivity
tip
UI Coverage is a paid add-on. Schedule a demo today and see how easy it is to enhance your testing while speeding up your development process.
Interactive Elements​
UI Coverage uses a set of rules, based on HTML semantics, WHATWG standards, as well as some additional rules defined by Cypress, to determine which elements are interactive. Some examples of elements that are considered interactive and are thereby included in UI Coverage are:
- Elements with implicit interactive roles such as elements with a tag of
a,button,input,select,textarea, etc. - Elements with explicit interactive roles such as elements with a
roleattribute set tobutton,checkbox,radio,tab,textbox, etc. - Elements with a
tabindexattribute set to >= 0.
Interaction Commands​
UI Coverage considers interactive elements "tested" if they are interacted with by a Cypress command. The commands that are considered interactions are:
blurcheckclearclickdblclickfocusrightclickscrollIntoViewscrollToselectselectFilesubmittriggertypeuncheck