In addition to the existing Special:VueTest-based visual regression test that tests Codex in an MW environment, we would like to also be able to run visual regression tests on the standalone Codex sandbox.
I can think of two different ways to do this, but maybe there are more:
- Have Pixel download the main branch of Codex, build its sandbox, and point Pixel to sandbox/index.html (as well as the other subpages of the sandbox)
- Have the npm run doc command build the sandbox and put it in the output directory under /sandbox, similar to what npm run branch-deploy does. That would make the sandbox available at https://doc.wikimedia.org/codex/main/sandbox , and we could then point Pixel to that URL