Page MenuHomePhabricator

mediawiki.ForeignApi QUnit tests are broken in Special:JavaScriptTest
Open, Needs TriagePublic

Description

Steps to reproduce:

  • set up MediaWiki via Vagrant
  • visit Special:JavaScriptTest in Chrome

The tests are severely broken and break the entire test runner.

Event Timeline

Seems like actually only one test is broken, the others breaking is a knockover effect.

origin is included in GET requests
Expected: 	true
Result: 	null
Source: 	
    at Object.response (http://dev.wiki.local.wmftest.net:22100/w/tests/qunit/suites/resources/mediawiki.api/mediawiki.ForeignApi.test.js?39272:13:11)
    at F.match (http://dev.wiki.local.wmftest.net:22100/w/resources/lib/sinonjs/sinon.js?56319:5733:42)
    at F.processRequest (http://dev.wiki.local.wmftest.net:22100/w/resources/lib/sinonjs/sinon.js?56319:5877:39)
    at F.respond (http://dev.wiki.local.wmftest.net:22100/w/resources/lib/sinonjs/sinon.js?56319:5863:26)
    at FakeXMLHttpRequest.xhrObj.onSend (http://dev.wiki.local.wmftest.net:22100/w/resources/lib/sinonjs/sinon.js?56319:5784:32)
    at FakeXMLHttpRequest.send (http://dev.wiki.local.wmftest.net:22100/w/resources/lib/sinonjs/sinon.js?56319:5476:26)
Aklapper renamed this task from mediawiki.ForeignApi QUniut tests are broken in Special:JavaScriptTest to mediawiki.ForeignApi QUnit tests are broken in Special:JavaScriptTest.May 29 2020, 12:16 PM

Change 599863 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/core@master] Limit mediawiki.ForeignApi test times

https://gerrit.wikimedia.org/r/599863