Page MenuHomePhabricator

Mocha tests for Echo notifications
Closed, DuplicatePublic

Description

Similar to T146916: RSpec tests for Echo notifications, @Etonkovidova and I will investigate how a Node.js+Mocha+mwbot stack works for Echo API tests.

TODO

🚀 382183 (mediawiki/extensions/Echo): WIP Mocha tests for Echo notifications - core has moved from nodemw to mwbot

Done

⚰️ 385191 (mediawiki/core, Abandoned): WIP Mocha tests for Echo notifications

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 382183 had a related patch set uploaded (by Zfilipin; owner: Zfilipin):
[mediawiki/extensions/Echo@master] WIP Mocha tests for Echo notifications

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

Change 385191 had a related patch set uploaded (by Zfilipin; owner: Zfilipin):
[mediawiki/core@master] WIP Mocha tests for Echo notifications

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

mediawiki-core-qunit-selenium-jessie job is running mocha tests instead of selenium tests, and it is working fine ([[ https://integration.wikimedia.org/ci/job/mediawiki-core-qunit-selenium-jessie/8668/console | mediawiki-core-qunit-selenium-jessie/8668 ]]):

...
00:02:14.348 [chrome #0-0]   Echo
00:02:14.349 [chrome #0-0]       ✓ should notify a new user with welcome message
00:02:14.349 [chrome #0-0]
00:02:14.349 [chrome #0-0]
00:02:14.349 [chrome #0-0] 1 passing (3s)
...

To get the job running, I had to create 385191 for mediawiki/core and modify 382183 for mediawiki/extensions/Echo.

Modification includes mostly in running the tests from core instead from Echo and in wrapping the nodemw code with webdriverio's browser.call.

Change 385191 abandoned by Zfilipin:
WIP Mocha tests for Echo notifications

Reason:
not needed any more

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

@Etonkovidova do you plan to work on this in the near future?

@zeljkofilipin Let's keep this task around until more specific tasks will be added.

Hi @Etonkovidova

I would like to work on QA: Automation Testing - port Echo Notification tests to Node.js project, and I sent you the direct email to your <etonkovidova@wikimedia.org>. Please take a look and I need your help with the setting up project.

Thanks,
Huyen

Hi @huyen_thi_ha, welcome to Wikimedia community and welcome to Phabricator! 😄

This task is about API tests for Echo, not about Selenium tests. Looks like the task you are talking about is T204068: QA: Automation Testing - port Echo Notification tests to Node.js. You should leave a comment at that task, but please provide more information about what you need help with.

Change 382183 abandoned by Zfilipin:
WIP Mocha tests for Echo notifications

Reason:
no activity in months

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