Page MenuHomePhabricator

Migrate PageGateway.test.js to tests/node-qunit/mobile.startup
Closed, ResolvedPublic2 Estimated Story Points

Description

PageGateway.test.jshas already been migrated to webpack's control, but its associated tests proved to be challenging to migrate due to tight coupling with dependencies ( e.g. jQuery) and a lot of stubbing in its place. It was thus decided to leave its test file as is and migrate it in a future card (this one).

What with T204786 this should hopefully be trivial.

Acceptance criteria

  • PageGateway.test.jsis migrated to tests/node-qunit/mobile.startup and can be run from headless qunit
  • Move large test MW API responses to their own files as wanted to avoid cluttering the tests

Note: Adding additional test coverage is out of scope and will be added separately.

Sign off steps

Event Timeline

Change 466606 had a related patch set uploaded (by Jdrewniak; owner: Jdrewniak):
[mediawiki/extensions/MobileFrontend@master] Porting PageGateway tests to node-qunit

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

Change 468494 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/extensions/MobileFrontend@master] Use ES6 template strings for test HTML templates

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

Change 468624 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/extensions/MobileFrontend@master] Remove jQuery usage inside PageGateway tests

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

Change 466606 merged by Jdlrobson:
[mediawiki/extensions/MobileFrontend@master] Porting PageGateway tests to node-qunit

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

Change 468494 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Use ES6 template strings for test HTML templates

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

Change 468624 merged by Jdlrobson:
[mediawiki/extensions/MobileFrontend@master] Remove jQuery usage inside PageGateway tests

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

Change 469456 had a related patch set uploaded (by Nray; owner: Nray):
[mediawiki/extensions/MobileFrontend@master] Remove left over files from PageGateway migration

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

Change 469456 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Remove leftover files from PageGateway migration

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

Jdlrobson updated the task description. (Show Details)