Page MenuHomePhabricator

Cite browser tests failing in CI for multiple extensions
Closed, ResolvedPublic

Description

Cite's own CI is currently failing for an empty commit. It is also blocking Wikibase CI and possibly others.

ve-cite/templates.cy.js and ve-cite/wt2017Integration.cy.js are consistently failing, see

09:50:10   Re-using refs in Visual Editor using templates
09:50:22     (Attempt 1 of 3) should add a template reference and verify correct content in both saved and edit mode
09:50:26     (Attempt 2 of 3) should add a template reference and verify correct content in both saved and edit mode
09:50:30     1) should add a template reference and verify correct content in both saved and edit mode
09:50:30 
09:50:30 
09:50:30   0 passing (21s)
09:50:30   1 failing
09:50:30 
09:50:30   1) Re-using refs in Visual Editor using templates
09:50:30        should add a template reference and verify correct content in both saved and edit mode:
09:50:30      Error: The following error originated from your application code, not from Cypress. It was caused by an unhandled promise rejection.
09:50:30 
09:50:30   > badvalue
09:50:30 
09:50:30 When Cypress detects uncaught errors originating from your application it will automatically fail the current test.
09:50:30 
09:50:30 This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event.
09:50:30 
09:50:30 https://on.cypress.io/uncaught-exception-from-application
09:50:30       at makeErrFromObj (http://127.0.0.1:9413/__cypress/runner/cypress_runner.js:78270:12)
09:50:30       at errorFromProjectRejectionEvent (http://127.0.0.1:9413/__cypress/runner/cypress_runner.js:78614:10)
09:50:30       at Object.errorFromUncaughtEvent (http://127.0.0.1:9413/__cypress/runner/cypress_runner.js:78619:65)
09:50:30       at <unknown> (http://127.0.0.1:9413/__cypress/runner/cypress_runner.js:146694:66)

Event Timeline

Jakob_WMDE renamed this task from Cite browser tests failing in Wikibase CI to Cite browser tests failing in CI for multiple extensions.Mar 30 2026, 3:24 AM
Jakob_WMDE updated the task description. (Show Details)

Change #1264543 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/Cite@master] [test] Wait for dialog to be visible

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

Change #1264563 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/Cite@master] Skip flapping tests

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

Change #1264563 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Skip flapping tests

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

awight removed awight as the assignee of this task.Apr 1 2026, 7:40 AM
awight subscribed.

Change #1264543 abandoned by Awight:

[mediawiki/extensions/Cite@master] [test] Wait for dialog to be visible

Reason:

didn't help.

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

Change #1266202 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/Cite@master] [debug] Log unhandled exception errors in Cypress tests

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

The issue seems to come from the TemplateData-API when the application loads the CitationDialog. The API returns badvalue this seems to throw an exception in the application and causes Cypress to fail. When I let Cypress catch and ignore the exception we can see further into the issue. The CitationDialog just does not show up.

See

image.png (270×480 px, 99 KB)

The request URL is

api.php?action=templatedata&format=json&lang=en&includeMissingTitles=1&redirects=1&titles=Template%3AInternetquelle

Note, that it should not matter if the Template exists. The test is not assuming that is exists.

The above issue comes from the fact that TemplateData is missing in the CI. I'm going to make the tests only skip, when it's missing.

Change #1266202 abandoned by WMDE-Fisch:

[mediawiki/extensions/Cite@master] [debug] Log unhandled exception errors in Cypress tests

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

Change #1266256 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/Cite@master] Cypress: Skip tests on missing TemplateData

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

Change #1266256 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Cypress: Skip tests on missing TemplateData

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