For tests involving DOM, currently the HTML test runner is the only option, which means no CI.
We should probably support a CLI-based test runner that runs them in browsers.
Something like this (or that wholesale, if we can integrate with it): https://modern-web.dev/docs/test-runner/overview/