Page MenuHomePhabricator

BetaFeatures tests failing after OOjs UI update
Closed, ResolvedPublic


Apparently some PHPUnit tests of BetaFeatures are failing. See e.g. (it is a Jenkins build for Wikibase patch, Wikibase pulls in BetaFeatures).

It loooks like the extension itself hasn't really changed recently. Apparently some recent improvement ins OOJS UI might have caused the test failure. I haven't tracked down the particular change there (maybe /) but I don't think it is really important here what made those tests fail. is a rather simple and no-brain-involved way to fix those tests.

BTW: those tests, the way there are now, seem quite fragile. Whenever OO adds/changes some HTML attributes, they are going to fail. I believe even if attribute order changes test are going to break. Maybe it would be worth changing them in such a way that only really important bits of HTML are checked? I am not very familiar with this extension, so I'd like to decide myself what attributes etc can be left over and so on.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 8 2017, 10:22 AM
WMDE-leszek triaged this task as High priority.Feb 8 2017, 10:23 AM

Change 336599 had a related patch set uploaded (by WMDE-leszek):
Fix failing tests after change how OOjs UI generates labels

Change 336599 merged by jenkins-bot:
Fix failing tests after change how OOjs UI generates labels