The [[ https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/tests/selenium/docs/Stack/webdriverio.js | tests/selenium/docs/Stack/webdriverio.js ]] is not currently being trigged in CI. This was identified because after migrating everything but this file to ESM, the CI is not failing due to this file not being upgraded.
To quote Željko: Where this could cause trouble is migrations. For example, in {T373125} this file didn't change and the CI didn't fail. (CI should fail because the rest of the codebase is using ESM.)
The file is currently located in `tests/selenium/docs/Stack/` instead of in `tests/selenium/docs/Stack/spec`, to make it explicit that it doesn't run in the CI.
An idea from @Peter is to add `&& node tests/selenium/docs/Stack/webdriverio.js` to `selenium-test`.
AC
- First, `tests/selenium/docs/Stack/webdriverio.js` fails in CI meaning that it's running in CI
- The issue is fixed by upgrading the file to ESM