Currently there is no way to use interactive mode using Docker Desktop, see #763
You can work arround this issue by using image: theasp/novnc:latest in another container:
cypress:
image: cypress/included:12.6.0
profiles:
- testing
environment:
- DISPLAY=novnc:0.0
depends_on:
- novnc
entrypoint: []
command: bash -c 'npx wait-on http://novnc:8080 && cypress open --project /e2e'
working_dir: /cypress/e2e
volumes:
- ./:/e2e
networks:
- default
novnc:
image: theasp/novnc:latest
profiles:
- testing
environment:
- DISPLAY_WIDTH=1600
- DISPLAY_HEIGHT=968
- RUN_XTERM=no
ports:
- "1304:8080"
networks:
- default
With such a config you can see the running interactive test on localhost:1304 in a browser.
It would be very nice if this functionality would be included in the Cypress/included container.
That way we would not need to configure a separate noVNC container, it would work out of the box.