ci(free-tests): run the suite under xvfb-run

Headed-browser tests (handoff, extension sidepanel DOM) need a real
DISPLAY; the first Linux run died on Playwright's 'headed browser
without an XServer' banner. xvfb-run -a provides the display; x11-utils
ships xdpyinfo for display probing.
This commit is contained in:
Garry Tan 2026-08-15 17:40:55 -07:00
parent 7508c92e3a
commit aca5061274
No known key found for this signature in database
GPG Key ID: C1F69E85C74EFE1D
1 changed files with 8 additions and 1 deletions

View File

@ -79,6 +79,13 @@ jobs:
- name: Install Playwright Chromium
run: npx playwright install --with-deps chromium
# Headed-browser tests (handoff, extension sidepanel DOM) need a real
# DISPLAY — first Linux run failed with Playwright's "launched a headed
# browser without an XServer" banner. xvfb-run below provides it;
# x11-utils ships xdpyinfo for display probing.
- name: Install Xvfb + X11 utilities
run: sudo apt-get install -y --no-install-recommends xvfb x11-utils
- name: Configure git identity (tests init temp repos)
run: |
git config --global user.email "free-tests-ci@gstack.test"
@ -96,7 +103,7 @@ jobs:
run: bash browse/scripts/build-node-server.sh
- name: Run free suite
run: bun run test:free
run: xvfb-run -a bun run test:free
# The runner streams the full child output to per-run logs under the OS
# tmpdir and prints only the quiet contract to the console. Without this