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
Since the work done in #3162586: JavascriptTestBase is deprecated and removed from Drupal 9 to make the tests Drupal 9 compatible, the automated tests no longer pass.
Proposed resolution
Since the work on that issue changed the underlying Javascript test base, likely the needed fix is to update the test itself.
Comment | File | Size | Author |
---|---|---|---|
#3 | ckeditor_accessibility_auditor-automated_tests-3174808-3.patch | 1.05 KB | mandclu |
|
Comments
Comment #2
mandclu CreditAttribution: mandclu at Northern Commerce commentedBased on my understanding, the error is thrown because the test on line 152 of HTMLCodeSnifferTest.php tries to change a value for a form field that is disabled by design.
WebDriverTetBase must handle this scenario differently than JavascriptTestBase did. It would be easy enough to remove this particular test, but it would be good to validate that users without the "administer site configuration" permission are unable to change this value. Any thoughts on how the test might be rewritten?
Or perhaps, this could be addressed by not even displaying the field for users without the permission, and then the test could verify that the field is not in the page for the $not_an_admin user.
Comment #3
mandclu CreditAttribution: mandclu at Northern Commerce commentedFirst attempt at an updated test. This verifies that the field is disabled, instead of attempting to submit a bogus value.
Comment #5
mandclu CreditAttribution: mandclu at Northern Commerce commentedUpdated test seems to pass now, so marking this as fixed