[wp-trac] [WordPress Trac] #56250: ReferenceErrors encountered when running QUnit tests

WordPress Trac noreply at wordpress.org
Sun Jul 9 15:59:31 UTC 2023


#56250: ReferenceErrors encountered when running QUnit tests
------------------------------+------------------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  javascript
------------------------------+------------------------------

Comment (by MattyRob):

 `grunt-contrib-qunit` 7.0.1 fixed this issue on the ClassicPress testing.
 The issues was due to a bug / feature in Puppeteer that meant that the
 bridge.js fine in `grunt-contrib-qunit` was being injected into all
 frames, including those created during testing by TinyMCE for example.

 A conditional check ensuring that the bridge is only loaded in the top
 frame has removed the encountered ReferenceErrors.

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


More information about the wp-trac mailing list