cypress

From https://github.com/dtinth/cypress-docker-novnc, thank you.

install

docker compose up -d

todo

usage

Access desktop env using

cypress-with-mongo

If you need mongo inside the cypress image

Create docker-compose.override.yml

# docker-compose.override.yml
services:
  cypress:
    build:
      context: .
      target: cypress-with-mongo
    command: bash -c 'npx wait-on http://novnc:8080 && mongod --fork --logpath /var/log/mongodb/mongodb.log && cypress open --project /srv/www/e2e'
docker compose up -d

# check mongodb logs
docker compose exec cypress sh
tail -f /var/log/mongodb.log