Page MenuHomePhabricator

Write web test for Cite-VisualEditor integration
Closed, ResolvedPublic

Description

Start with a simple test for a happy path behavior in VE, for example:

Example test case:

  • Create a new page containing a reference, via API. See backlinks.js "before" function for an example.
  • Open the page for editing in VE.
  • Click on the footnote marker.
  • Assert that the popup appears and shows the ref content.
  • Click the "Edit" button in the popup.
  • Assert that a dialog appears with the ref content.

Write this test using the Cypress framework.

There may be some CI infrastructure work required so that the VisualEditor extension is loaded as a dependency of Cite during tests.

Event Timeline

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

[mediawiki/extensions/Cite@master] Write e2e test for Cite-VisualEditor integration in Cypress

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

Change 992762 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Write e2e test for Cite-VisualEditor integration in Cypress

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