Page MenuHomePhabricator

Fix running selenium/cypress tests for Wikibase
Closed, InvalidPublic

Description

AC

Fix for Cypress: https://gitlab.wikimedia.org/repos/test-platform/mediawiki-quickstart/-/merge_requests/68/diffs

Fix for Selenium: see note https://phabricator.wikimedia.org/T384032#11613051

Notes

  • Local P87990
    • ✖ 12 of 12 failed (100%)
  • CI P87989
    • ✖ 12 of 12 failed (100%)

Details

Related Changes in Gerrit:

Event Timeline

zeljkofilipin renamed this task from Fix Wikibase manifest so Selenium tests pass to Fix running selenium/cypress tests for Wikibase.Jan 27 2026, 11:47 AM
zeljkofilipin changed the task status from Open to In Progress.Jan 28 2026, 10:46 AM
zeljkofilipin claimed this task.
zeljkofilipin triaged this task as High priority.
zeljkofilipin moved this task from Backlog 🪒 to Deep work 🌊 on the User-zeljkofilipin board.
zeljkofilipin changed the task status from Stalled to Open.Jan 29 2026, 5:45 PM
zeljkofilipin changed the task status from Open to Stalled.
zeljkofilipin removed zeljkofilipin as the assignee of this task.
zeljkofilipin raised the priority of this task from High to Needs Triage.
zeljkofilipin moved this task from Doing to Prioritized on the Browser Test Platform board.
zeljkofilipin moved this task from Deep work 🌊 to Waiting 🏹 on the User-zeljkofilipin board.
zeljkofilipin changed the task status from Stalled to Open.Feb 9 2026, 3:02 PM

Cypress tests now pass with this patch

Wikibase's wdio selenium tests fail because repo/tests/selenium/wdio.conf.js and client/tests/selenium/wdio.conf.js use __dirname (CommonJS) while running in ES module context

Fix: update wdio-mediawiki from 5.1.0 to latest (6.2.0) and replace bare __dirname in those two files with the new Util.dirname() helper

@zeljkofilipin @Peter Could you guys handle the wdio-mediawiki upgrade?

Mhurd updated the task description. (Show Details)

Wikibase's wdio selenium tests fail because repo/tests/selenium/wdio.conf.js and client/tests/selenium/wdio.conf.js use __dirname (CommonJS) while running in ES module context

Fix: update wdio-mediawiki from 5.1.0 to latest (6.2.0) and replace bare __dirname in those two files with the new Util.dirname() helper

@zeljkofilipin @Peter Could you guys handle the wdio-mediawiki upgrade?

I'll take care of that.

Mhurd removed Mhurd as the assignee of this task.Mar 13 2026, 8:38 PM
Mhurd subscribed.
pwangai changed the task status from Open to In Progress.Mar 26 2026, 2:46 AM
pwangai claimed this task.

Change #1261729 had a related patch set uploaded (by Pwangai; author: Pwangai):

[mediawiki/extensions/Wikibase@master] Fix running selenium tests.

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

Change #1261729 abandoned by Pwangai:

[mediawiki/extensions/Wikibase@master] Fix running selenium tests.

Reason:

This was fixed in 1235623

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