[wp-trac] [WordPress Trac] #32688: Customizer Menus: add QUnit tests

WordPress Trac noreply at wordpress.org
Sun Aug 2 06:19:18 UTC 2015


#32688: Customizer Menus: add QUnit tests
----------------------------+-----------------------
 Reporter:  designsimply    |       Owner:
     Type:  task (blessed)  |      Status:  assigned
 Priority:  high            |   Milestone:  4.3
Component:  Customize       |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------
Changes (by westonruter):

 * keywords:  needs-patch => has-patch


Comment:

 Well, I feel like [attachment:32688.8.diff] may be as far as we can take
 QUnit tests for Menu Customizer in 4.3. Beside the limited time left, the
 Menu Customizer functionality really begs for integration/acceptance tests
 and not pure unit tests (even the PHPUnit tests in Core are often not pure
 unit tests either). I think what we really need to fully test the
 Customizer is a testing approach that has a real environment (i.e. the
 vanilla environment created for initial PHPUnit test state) which allows
 JS to access data provided by PHP at page load time, *and* via Ajax
 requests, and evaluate the ability to perform end-to-end workflow
 operations on menus in the Customizer. This is something I've talked about
 with @jorbin to start writing Selenium scripts to run through the
 Customizer in the various acceptance tests.

 So I suggest that the patch here be committed and we close this out to
 then turn focus in JS testing to writing acceptance tests.

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


More information about the wp-trac mailing list