mwbot is the library we use in our webdriver.io tests to talk to the MediaWiki API to create users and pages needed for our webdriver.io tests. The library is a third party library that is not maintained anymore, have dependencies that are not maintained (T330443, T401673) and have room for improvement in the error handling (T401653, T393428#11029515).
We want to replace that library with code that lives in core to make it easy for us to fix problems with the functionality.
AC:
- Document what functions should be ported to core for core tests to work
- Investigate if it's possible to use built in fetch (nodejs-fetch) and if so, identify what functionality is missing that we need to build ourselves
- Create follow-up tasks for implementing mwbot functionality in core