Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently the js/color_field_widget_box.js file generates buttons for admin forms. This works great! However, none of these buttons have unique values or ids, and as a result trying to do any automated testing with Behat on an admin form with a required color field is impossible.
Proposed resolution
Update the js/color_field_widget_box.js to also include a value on the box/button so it can be uniquely identified by Behat and other automation frameworks.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#2 | color-box-button-values-3011853-2.patch | 507 bytes | mikemadison |
|
Comments
Comment #2
mikemadison CreditAttribution: mikemadison at Acquia commentedComment #3
mikemadison CreditAttribution: mikemadison at Acquia commentedComment #4
NickDickinsonWildeOops missed that this was actually ready, best to unassign ;) (Although was getting behind on tickets anyways so not like it delayed it much)
I've mostly used jquery [] selectors to get around that but if it helps, it probably is better to set the value.
Thanks for the patch, applied.