Opening a Phab task for this as recommended by SDunlap (discussion on wikitech:Talk:Catalyst).
As a userscript developer, I want to be able to spin up a MW instance so that I can have my userscript undergo E2E testing in CI.
What we would like to be able to do:
- create a Catalyst/Patchdemo (not sure which would be more appropriate) instance in CI
- have the CI automatically tear down the instance as well when tests finish running
- have the built userscript deployed directly to the instance if possible (maybe through some sort of config option that can deploy the script to a page on the wiki?)
- or just deploy it through mediawiki API
- some way to get a username/password pair for Playwright to log in
- a sysop account to test features when necessary
- some way to get the wiki seeded with some test edits/some "vandal" accounts so that they can be reverted/blocked as accordingly by the tests
Interested to hear thoughts on this and whether this usecase could be supported as of now.