Currently there exists no front-end browser tests for CheckUser. Due to the added complexity of testing for correct page output using phpunit, using selenium (which is built for testing the page that is sent to the browser) will allow the automated testing of whether the user can use the special pages implemented by CheckUser. This will also likely need some test data that can be preloaded into the CheckUser table and also likely a reset of the DB on every test as events (such as logins) will affect the data seen by the next test.
|Open||Feature||None||T318448 Write selenium tests for CheckUser|
|Open||None||T321965 Allow the jenkins selenium tests to grant the test user the checkuser group/right for testing|
I'm assuming you were following the documentation or sample code I wrote (and forgot to update), but we've switched from sync to async mode for selenium tests (because of upstream changes). See T256626 for details. It would be great if you moved to async mode while there isn't much code. Let me know if you need help or reviews.