Page MenuHomePhabricator

Port Cite web test suite to Cypress
Closed, ResolvedPublic

Description

Building on the successful experiment in T351707, we want to switch the Cite extension web tests over from Selenium to Cypress. This framework comes with much better debugging affordances, and seems to run much faster in CI which allows us to write more comprehensive web tests. Web testing will be especially useful for working on visual editor integration for Cite.

Steps to implement:

  • Copy over and adapt setup files, to install Cypress in the Cite code base.
  • Port tests/selenium/specs/backlinks.js and supporting file cite.page.js to run under the Cypress environment, in a second patchset.
  • Run the new suite in CI, replacing the previous selenium integration.
  • Delete the selenium test suite.
  • Add documentation to mediawiki.org

Event Timeline

Change 984193 had a related patch set uploaded (by Mareike Heuer; author: Mareike Heuer):

[mediawiki/extensions/Cite@master] Port Cite web test suite to Cypress

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

Change 984193 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Port Cite web test suite to Cypress

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

Change 991532 had a related patch set uploaded (by Mareike Heuer; author: Mareike Heuer):

[mediawiki/extensions/Cite@master] Cypress Improvements

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

Change 991532 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Cypress Improvements

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

Is there any documentation on this anywhere? These tests are failing but all the documentation is on Selenium so there's no easy guide to help people run rests locally. https://www.mediawiki.org/wiki/Selenium

https://www.mediawiki.org/w/index.php?go=Go&search=Cypress&title=Special%3ASearch&ns0=1&ns12=1&ns100=1&ns102=1&ns104=1&ns106=1&searchToken=aknu1d69oou0f042h7y0g517l crickets!