Page MenuHomePhabricator

[ES-M2] Setup Cypress for browser testing
Closed, ResolvedPublic

Description

As per the results of T331732: [ES-M1] Investigate browser testing frameworks for Entity Schema Extension, and the consequent team decision recorded at change 903704 on gerrit, we we concluded that the best way to move forward with modernizing our browser testing framework is to set up and work with Cypress. This is expected to improve testability, and also the modifiability and analyzability of our test code. In addition, we hope this will help make our CI runs more reliable, by employing a more modern testing framework.

Acceptance Criteria:

  • Cypress is set up to work both locally and in our CI
  • Documentation on how to run cypress tests is added to our developer docs
  • One small existing test is converted to cypress as an example

Event Timeline

Change 904465 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/EntitySchema@master] Add Cypress

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

Change 904465 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Add Cypress

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

Lucas_Werkmeister_WMDE assigned this task to Michael.

I think we can call this done, we’ve migrated several tests to Cypress successfully. (There’s also documentation for how to run the Cypress tests locally.)