[wp-trac] [WordPress Trac] #45066: Replace wp-a11y.js with @wordpress/a11y package

WordPress Trac noreply at wordpress.org
Thu Jan 10 20:32:01 UTC 2019


#45066: Replace wp-a11y.js with @wordpress/a11y package
-------------------------------------+-------------------------------------
 Reporter:  omarreiss                |       Owner:  omarreiss
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.2
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  accessibility,
  needs-refresh                      |  javascript
-------------------------------------+-------------------------------------

Comment (by herregroen):

 @desrosj going to need some more time for this I'm afraid.

 `wp-polyfill` is now a dependency of the packaged `wp-a11y` which means
 that during the unit tests the full polyfill browser tests are printed out
 which cause two tests to fail. The packaged scripts also contain various
 version strings that are package versions which I'm not sure are exposed.

 Will need a bit of time to write an elegant way to unit test these as I
 don't think removing `wp-a11y` altogether from unit tests would be good.
 Having an elegant solution for that means we can also start adding unit
 tests for the other packages which right now aren't included at all in
 `tests/phpunit/tests/dependencies/scripts.php` I believe.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45066#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list