
Problem/Motivation
The Form API #states have been around since D7, and pre-date our functional javascript testing. This don't have any test coverage yet.
Proposed resolution
Write tests for each of the JS states behaviour.
Examples of what could be tested:
- The expected values of attributes which change
- The syntax of various aria-* properties. Notably, the boolean ARIA properties use the words "true" and "false" as their values, which is different to the HTML boolean attribute syntax.
Remaining tasks
?
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer commentedAFAIK there isn't any test coverage of FAPI #states yet - my first-pass survey amounted to typing "state" in the filter field at
admin/config/development/testing
.Examples of what could be tested:
aria-required="aria-required"
was discovered.Comment #3
idebr CreditAttribution: idebr at ezCompany commentedPossibly a duplicate of #2892872: [META] Add Javascript tests for all Form API's #states?
Comment #4
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer commentedYes, thanks. Let's close this one quickly, the other issue has child issues with patches already.