web-client-ui
web-client-ui copied to clipboard
Make it easier to run e2e tests locally
Since adding app mode for e2e tests, it is harder to run the e2e tests locally as you need additional setup. This effects if you are trying to use headed mode to debug or use the generator.
We could make the docker-compose for the e2e tests easily accessible as a backend for running e2e tests with e2e, e2e:codgen, and e2e:headed
One potential pitfall is the docker-compose for e2e:docker does not expose port 10000 on purpose. That way you can run e2e:docker even if you are running a local server on port 10000 already
@mattrunyon there are instructions for running e2e tests locally: https://github.com/deephaven/web-client-ui?tab=readme-ov-file#local Is that sufficient? Or is there something else we need to document?
The instructions are fine (should also probably mention you can add the START_OPTS to docker/docker-compose)
I was thinking it would be nice to have an npm run e2e:server or something that just pulls/starts docker and exposes the port so you can use the headed and codegen scripts easily and all contained within the repo