Follow up to #2702233: Add Javascript tests for Form API's #states: require, visible, invisible to track which states are covered
The following states may be applied to an element with the issue that provides the tests
- enabled
- disabled
- required #2702233: Add Javascript tests for Form API's #states: require, visible, invisible
- optional
- visible: #2702233: Add Javascript tests for Form API's #states: require, visible, invisible
- invisible: #2702233: Add Javascript tests for Form API's #states: require, visible, invisible
- checked
- unchecked
- expanded
- collapsed
- relevant
- irrelevant
- valid
- invalid
- touched
- untouched
- readwrite
- readonly
here are currently a number of issues regarding states that are blocked on the core gate for testing and could benefit greatly from the tests.
#2871794: #states attribute does not work for managed_file
#2700667: Notice: Undefined index: #type in drupal_process_states()
#2226405: FAPI #states: dependent element added via AJAX initializes incorrectly if dependee has been initialized earlier
#1149078: States API doesn't work with multiple select fields
#2847425: #states not affecting visibility/requirement of managed_file
#736182: Match States API required fields theming with Forms API
#994360: #states cannot check/uncheck 'radios' and 'checkboxes' elements
#2820586: #states not applied to link elements