Page MenuHomePhabricator

Change `assert` to `expect` in WikiLambda browser tests
Closed, ResolvedPublic

Description

In /tests/selenium/specs directory nodejs inbuilt assert module is being used. The project already uses webdriverio that comes with its own assertion library called expect-webdriverio that provides more complex assertions methods as well as are more readable. The task is to change assert to expect. Even the jest directory uses expect.

Event Timeline

Change 894584 had a related patch set uploaded (by Nik.xyz.in; author: Nik.xyz.in):

[mediawiki/extensions/WikiLambda@master] selenium-test: change assert to expect

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

Jdforrester-WMF renamed this task from Change `assert` to `expect` to Change `assert` to `expect` in WikiLambda browser tests.Mar 8 2023, 2:31 PM

Change 894584 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] selenium-test: change assert to expect

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