cypress-io / cypress-docker-images

Docker images with Cypress dependencies and browsers
https://on.cypress.io/continuous-integration
MIT License
1.02k stars 380 forks source link

Feature request: Make the running browser visible (by including noVNC) in docker Cypress/included #878

Open HendrikJan opened 1 year ago

HendrikJan commented 1 year ago

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.

nagash77 commented 1 year ago

@HendrikJan , Thank you for submitting your feature request. Cypress Product Managers will review this request and consider it for future implementation. Please remember we cannot guarantee this will be implemented in a specific timeframe or at all. Please see the Cypress App Product Roadmap for what we currently have slated.