Page MenuHomePhabricator

[MEX] 3.2.2 Avoid making live requests to Wikimedia Commons during end-to-end tests
Closed, ResolvedPublic

Description

The end-to-end tests for tabular and geo-shape datatypes in MEX take some steps to intercept API calls and avoid making live calls against Wikimedia Commons.

Unfortunately, some requests are still being made live. This means that the end-to-end tests will not run offline against a local wiki, and also means that our tests may start to fail if content on Commons changes or if the connection to commons is unavailable to CI.

Update the MEX end-to-end tests so that Commons is stubbed completely.

Acceptance Criteria

  • No requests are made to external APIs during end-to-end test runs (i.e. the tests can run on a laptop with no internet connection)

Event Timeline

Change #1212121 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Make addQualifier and addReference cypress tests run offline

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

Change #1212122 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Make editStringDatatypes Cypress tests run offline

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

Change #1212121 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Make addQualifier and addReference cypress tests run offline

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

Change #1212122 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Make editStringDatatypes Cypress tests run offline

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