Skip to content

Add playwright image with vnc support

andree.klattenhoff requested to merge playwright-vnc into main

This MR adds a playwright image with vnc support. My motivation behind this was that I was unable to get playwright tests running on my Linux machine. Installing playwright in a clean way outside the ubuntu world is impossible. As work a round I've used to just run the tests inside e2e container on my machine. This image supports to even run tests without headless mode. Beside local development this image is maybe helpful for debugging issues inside e2e base image in the future.

After connecting to the container with a vnc viewer you've a xfce desktop and a terminal to execute tests.

Start container

podman run --name ox-playwright -d -v /$PATH_TO_YOUR_UI_REPO/e2e:/e2e --rm -p 5901:5901 registry.gitlab.open-xchange.com/appsuite/web-foundation/base-images/playwright_vnc:v1.45.3-jammy

Connect with vncviewer

vncviewer localhost:5901

playwright_vnc

Credits: https://medium.com/@gustav0.lewin/how-to-make-a-docker-container-with-vnc-access-f607958141ae

Edited by andree.klattenhoff

Merge request reports

Loading