Skip to content

Commit 01b06cc

Browse files
committed
add dbus
Signed-off-by: Philippe Martin <[email protected]>
1 parent 9745292 commit 01b06cc

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/e2e-tests.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ jobs:
6565
sudo apt-get -y install podman; }
6666
podman version
6767
68+
- name: Set default browser desktop app and handlers
69+
run: |
70+
xdg-settings set default-web-browser firefox.desktop
71+
xdg-mime default firefox.desktop x-scheme-handler/https
72+
xdg-mime default firefox.desktop x-scheme-handler/http
73+
xvfb-run xdg-open 'https://developers.redhat.com/articles/faqs-no-cost-red-hat-enterprise-linux#general' & sleep 5; pkill Xvfb
74+
75+
# Install dbus-x11 package to allow dbus session for user for particular display (xvfb-maybe used in e2e test)
76+
# for reference, similar issue: https://github.com/actions/runner-images/issues/12127
77+
- name: Install dbus-x11 package
78+
run: sudo apt-get install dbus-x11
79+
6880
- name: Revert unprivileged user namespace restrictions in Ubuntu 24.04
6981
if: runner.os == 'Linux'
7082
run: |
@@ -116,4 +128,6 @@ jobs:
116128
working-directory: ./kubernetes-dashboard/tests/playwright
117129
env:
118130
PODMAN_DESKTOP_BINARY: ${{ env.PODMAN_DESKTOP_BINARY_PATH }}
119-
run: pnpm test:e2e
131+
run: |
132+
export $(dbus-launch)
133+
pnpm test:e2e

0 commit comments

Comments
 (0)